Add the line setopt INTERACTIVE_COMMENTS to your ~/.zshrc file, save it, and relaunch the shell. This is to clarify on @Lajnold's answer and @Hamish Downer's comment. It just took me a little bit to figure out how to make this change permanent. You probably want to add that line before exporting variables, so maybe add it toward the top of the
Open .zshrc in your preferred text editor. For this example, I'll use vim: vim ~/.zshrc Add the path: Scroll to the end of the file and add the following line, replacing /path/to/pip-directory with the directory you found in step 1. Remember, you want the directory, not the full path to the pip executable.
In Unix based systems, touch command followed by name will create an empty file in the present directory. the modification and access time of each file is also updated with the use of touch command. In your case, to create .zshrc file, you can use the touch command as : $ touch ~/.zshrc
The problem, a single redirect truncates the target file to 0 before adding the input. In your case, >> would have been better, it adds the input at the end of the file. See here in 3.6.2 for more information. For you main problem, sorry, I have no idea how to restore files on linux :(–
QCQ3UoT.