Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /etc/profile.d/zsh-vcs-prompt.sh
- # fizsh recommend
- echo $SHELL | grep -q zsh || return 0
- zstyle ':vcs_info:*' formats '%F{cyan}%s %B%b%f '
- zstyle ':vcs_info:*' enable git svn
- autoload -Uz vcs_info select-word-style
- select-word-style bash
- setopt autocd cshnullglob short_loops hist_ignore_space
- _vcs_info() {
- vcs_info
- [[ -n "$vcs_info_msg_0_" ]] && echo -n "${vcs_info_msg_0_}"
- }
- export RPS1='$(_vcs_info) %B%F{yellow}%T%f%b'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement