把 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
网友评论