在 iTerm 中自定义 Shell 提示

Custom Shell Prompt in iTerm

我在看a Polymer Video on youtube and i noticed Rob's iTerm had a different shell prompt. The '-> crisper-app part'

如何在我的 iTerm 运行 OSX Yosemite 上设置相同的内容?

他正在使用Oh My ZSH and the default robbyrussell theme. There are a lot more themes, you can check them out here

我想出了如何使用 Bash 变量来做到这一点:PS1PS2 等。您只需

export PS1='-> crisper app '

是的,这就解决了。