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…
精彩评论