.zsh/prompt.sh

16 lines
632 B
Bash
Raw Normal View History

2012-05-18 13:09:58 +04:00
#!/bin/zsh
# vim: set filetype=zsh
setopt prompt_subst
autoload -Uz vcs_info
zstyle ':vcs_info:*' actionformats \
'%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
zstyle ':vcs_info:*' formats \
'%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f '
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
2012-05-21 17:08:34 +04:00
zstyle ':vcs_info:*' enable svn hg git
2012-05-18 13:09:58 +04:00
zstyle ':vcs_info:*' disable-patterns "$HOME(/smb*|/.big/smb*)"
PROMPT=$'%B%{\e[0;36m%}┌─[%{\e[0;36m%}%n%{\e[0;36m%}@%{\e[0;32m%}%m%{\e[0;36m%} (%T)]──(%{\e[0;33m%}%~%{\e[0;36m%})\n└─[%{\e[0;39m%}%# %{\e[0;36m%}>%b '
RPROMPT=$'$(vcs_info_wrapper)'