Advertisement
quark_zju

zsh-vcs-prompt.sh

Apr 30th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.44 KB | None | 0 0
  1. # /etc/profile.d/zsh-vcs-prompt.sh
  2. # fizsh recommend
  3.  
  4. echo $SHELL | grep -q zsh || return 0
  5.  
  6. zstyle ':vcs_info:*' formats '%F{cyan}%s %B%b%f '
  7. zstyle ':vcs_info:*' enable git svn
  8. autoload -Uz vcs_info select-word-style
  9. select-word-style bash
  10. setopt autocd cshnullglob short_loops hist_ignore_space
  11. _vcs_info() {
  12.   vcs_info
  13.   [[ -n "$vcs_info_msg_0_" ]] && echo -n "${vcs_info_msg_0_}"
  14. }
  15. export RPS1='$(_vcs_info) %B%F{yellow}%T%f%b'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement