Found a swap file by the name “.bash_profile.swp“

Found a swap file by the name “.bash_profile.swp“_第1张图片

问题出在我对bash_profile文件操作时异常退出,这会导致系统创建一个bash_profile.swp文件。
解决办法:

  • 输入 q(退出)
  • 然后在终端出入:rm -f ~/.bash_profile.swp
  • 最后你在终端输入 source ~/.bash_profile就可以了

你可能感兴趣的:(遇到的异常)