将自定义别名添加到.zshrc

时间:2015-03-23 16:32:57

标签: zsh

我似乎无法通过zsh运行这两个脚本。有什么想法吗?

(在.zshrc中)

# hidden files
alias show= 'bash /usr/local/bin/show.sh'
alias hide= 'bash /usr/local/bin/hide.sh'

1 个答案:

答案 0 :(得分:10)

删除别名声明中=字符后面的空格字符:

# hidden files
alias show='bash /usr/local/bin/show.sh'
alias hide='bash /usr/local/bin/hide.sh'