在我的 .zshrc 中,我尝试创建一些别名。我查看了很多地方,但找不到有效的方法。我在下面使用了这个代码:
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run alias. # # Example aliases
alias zshconfig="mate ~/.zshrc"
alias ohmyzsh="mate ~/.oh-my-zsh"
alias n= "nano"
alias m= "mkdir"
alias w= "cd ~/Documents/UoMWorkspace/Semester2"
alias j= "cd ~/Documents/UoMWorkspace/Semester2/COMP17412"
Run Code Online (Sandbox Code Playgroud)
然后我写了一个命令source ~/.zshrc。仍然没有解决问题。我收到错误消息,例如zsh: command not found: j
任何人都可以帮助我提供任何建议并让我知道我做错了什么?
我正在尝试在我的终端中设置一些永久别名
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文件。