美文网首页
bash_profile切换到zshrc配置文件

bash_profile切换到zshrc配置文件

作者: x1sn0w | 来源:发表于2021-04-07 19:02 被阅读0次

把 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

相关文章

网友评论

      本文标题:bash_profile切换到zshrc配置文件

      本文链接:https://www.haomeiwen.com/subject/zvnukltx.html