I have updated my shell to ZSH. When I source ~/.bashrc
. I am getting this error
There was some error in yo doctor . when i execute this command
echo "export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules" >> ~/.bashrc && source ~/.bashrc
/home/amerrnath/.bashrc:17: command not found: shopt /home/amerrnath/.bashrc:25: command not found: shopt /home/amerrnath/.bashrc:109: command not found: shopt /usr/share/bash-completion/bash_completion:35: parse error near `]]'
Please help me resolve this problem
zsh
is notbash
. Why would you source.bashrc
? – Anthropologybashrc
file was written forbash
.zsh
is not bash. I'm surprised it is trying to load your.bashrc
at all. If it isn't and you are sourcing it manually from.profile
or similar. Stop. Then replace it with an appropriatezsh
init file. – Virile~/.bashrc
. You want to figure out how to write a~/.zshrc
file that does the same thing inzsh
that.bashrc
does inbash
. – Oefleinbash
and then execute~/.bashrc
– Krimmer