I am on mac, and have set up zsh with prezto on terminal. I have a python project for which I use virtualenv wrapper. Everything is working fine, but when I install a new package using pip and wants to freeze it in already existing requirements.txt file, zsh says:
zsh: file exists: requirements
The command which I run is : pip freeze > requirements.txt
My zshrc file is as follows:
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
export PATH=$PATH:$HOME/bin
ZSH_THEME="steeef"
plugins=(git django colored-man themes colorize github jira vagrant virtualenvwrapper pip python brew osx zsh-syntax-highlighting history-substring-search)
# export WORKON_HOME=$HOME/.virtuale nvs
# source /usr/local/bin/virtualenvwrapper.sh
export PATH=$PATH:/usr/local/mysql/bin
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
export WORKON_HOME=$HOME/.virtualenvs
PATH=$PATH:~/bin
export PATH
# source ~/.bash_profile
# export M2_HOME=~/maven-3.3.9
# export M2=$M2_HOME/bin
export PATH=$M2:$PATH
export JAVA_HOME=
source /usr/local/bin/virtualenvwrapper.sh
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.6/bin
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
May I know what is possibly wrong here?
Thanks
It is likely because of your
CLOBBER
option inzsh
shellSo just add a line in your
.zshrc
to take it effect on all your sessions.(or) do a clobber on re-direction to as
pip freeze >! requirements.txt