我正在尝试在我的终端中设置一些永久别名
export PATH=$PATH:/Applications/orca
alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
alias chem='wine "c:/chemcraft/chemcraft.exe" '
Run Code Online (Sandbox Code Playgroud)
但每次重新打开终端时,我都必须单独输入其中每一项。
哦,我的 zsh似乎根本不关心我的.bash_profile文件。
zsh不读取.bash_profile(名字表明它属于bash),因为它有自己的配置文件。
一般来说,您可以在 .zsh中放置zsh~/.zshrc的别名。如果您使用oh my zsh,.zsh您还可以创建一个扩展名为的文件,~/.oh-my-zsh/custom例如~/.oh-my-zsh/custom/aliases.zsh