0

我对 OSX 还很陌生,但一切都差不多安定下来了,我之前配置了 Z 和 ZSH,最近从https://github.com/paulirish/dotfiles了解了 paulirish dot 文件并安装了它。

刷新 .bash_profile 或 .bashrc 时看到以下输出

Last login: Tue May 14 08:41:35 on console
ls
➜  ~  ls
Applications    Downloads       Music           Samsung         dotfiles        log
Desktop         Library         Pictures        Sites           install-deps.sh readme.md
Documents       Movies          Public          bin             js-boilerplate
➜  ~  z
zsh: command not found: z
➜  ~  source ~/.bash_profile
/Users/marif/.aliases:79: bad option: -t
/Users/marif/.aliases:82: bad option: -t
/Users/marif/.functions:37: parse error near `]]'
/Users/marif/.bash_profile:.:9: no such file or directory: /Users/marif/code/z/z.sh
/Users/marif/.bash_profile:15: command not found: shopt
/Users/marif/.bash_profile:26: command not found: complete
\[\e]2;/Users/marif\[\a\]\[\e]1;\]Users/\W\[\a\]marif at   \[\]\w\[\]\[\]\[\]\n$ \[\]

我不知道这里出了什么问题,如果有人指出我在我的个人资料中持续存在问题或其他问题,将会有所帮助。

4

1 回答 1

1

zsh is not bash and when I launch "zsh", I see the same error that you do:

[/tmp]:;zsh
ElvisIsAliveAndWell-2% type -t
zsh: bad option: -t

These paulirish dot files are meant to be used with bash. Either use bash or you'll need to port the lines in the dot files that are throwing errors so that they will work in zsh (and if you do this, you can fork or branch or suggest changes to PaulIrish so he can pick up these changes and make them available for other interested folks).

于 2013-05-14T03:40:38.407 回答