开发者

How to make the prompt like this image(link)?

http://min.us/muKpIB16z开发者_如何学编程

Is that zsh? Could somebody share the PS1 code to everyone :P?

Thank you.


Use __git_ps1:

PS1='\u@\h:\w$(__git_ps1)\$ '


it's probably a theme from oh-my-zsh, git support is part of a lot of them. see their theme gallery for lots of examples…

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜