在我的.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"
然后我写了一条命令source ~/.zshrc
。仍然无法解决问题。我收到类似的错误消息zsh: command not found: j
谁能为我提供任何建议,让我知道我做错了什么?
3
从(多个)注释和错误来看,我想每个别名实际上都设置在一行上,对吗?
—
kos