我似乎无法通过zsh运行这两个脚本。有什么想法吗?
(在.zshrc中)
# hidden files
alias show= 'bash /usr/local/bin/show.sh'
alias hide= 'bash /usr/local/bin/hide.sh'
答案 0 :(得分:10)
删除别名声明中=
字符后面的空格字符:
# hidden files
alias show='bash /usr/local/bin/show.sh'
alias hide='bash /usr/local/bin/hide.sh'