bash换成zsh环境变量
The operation is the same on both Bash and zsh, with the caveat that to persist them you need to use .bashrc
and .zshrc
, respectively.
Bash和zsh上的操作相同,但需要注意的是,要保留它们,您需要分别使用.bashrc
和.zshrc
。
Setting them in the shell is the same:
将它们设置在外壳中是相同的:
$ export VARIABLE=something
To make sure it was set, type
要确保已设置,请键入
$ $VARIABLE
If you edit a dot file, to apply the changes to the current shell use source .dotfile
.
如果编辑点文件, source .dotfile
使用sou