bash_profile切换到zshrc配置文件

2021-04-07  本文已影响0人  x1sn0w

把 bash_profile 中的内容copy到 zshrc 文件中

1 、执行:【open ~/.zshrc 】

open ~/.zshrc

2 、如果 提示文件不存在,则执行:【vim ~/.zshrc 】新建一个新文件。

vim ~/.zshrc

3 、再执行【open ~/.bash_profile 】

open ~/.bash_profile

4 、把 bash_profile 中的内容copy到 zshrc 文件中,

保存:【:wq回车】

5 、再使用source命令重新加载一下:【source ~/.zshrc】,下次再编辑这个文件就可以直接执行:【open ~/.zshrc】

source ~/.zshrc

上一篇 下一篇

猜你喜欢

热点阅读