- 首先弄清用的什么shell
1 |
echo $SHELL |
这个命令在本机的输出是: /bin/zsh
所以shell 是 zsh
- The
~/
translates to your user’s home directory and the.zshrc
is the ZSH configuration file itself.
所以, 执行:
1 |
nano ~/.zshrc |
- 编辑之后, 如果想让修改生效 ,执行:
1 |
exec "$SHELL" |