My answer is only to refute the answer with the first number of votes, because I can't vote or reply. I followed his instructions and added "source ~/.bash_profile" at the beginning of my ~/.zshrc. Then I executed "source ~/.zshrc" and it gave an error, "-bash: export: `': not a valid identifier". At this time,any "sudo" and "vim" command will not work at all.And my "~/.bashrc" content will be replace by 'eval "$(thefuck --alias)"'.My command config went missing!I could only delete that line "source ~/.bash_profile" and execute "echo $PATH" to check my PATH. I found that "/usr/bin" and "/bin" were missing, which made my basic commands completely invalid. Then I executed "export PATH=$PATH:/usr/bin:/bin" to fix it. Don't try that method lightly!