From ade829d5ba4f96c401152e8d46fefc5bca0d22cc Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Tue, 10 Aug 2010 00:24:10 +0200 Subject: Add vcs_info to prompt --- zsh/zshrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'zsh/zshrc') diff --git a/zsh/zshrc b/zsh/zshrc index 01b6098..a06a633 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -9,7 +9,7 @@ #PROMPT="$PUSER$PATKI$PHOST$PDOPP$PPATH$PCOMM " -PROMPT="%~ %% " +PROMPT="%~%(1v.%F{green}%1v%f.) %% " zstyle ':completion:*' special-dirs true zstyle ':completion:*:*:kill:*' menu yes select @@ -33,6 +33,12 @@ HISTFILE=~/.zsh_history autoload -U compinit; compinit autoload zmv +autoload -Uz vcs_info +precmd() { + psvar=() + vcs_info + [[ -n $vcs_info_msg_0_ ]] && psvar[1]="$vcs_info_msg_0_" +} alias c="clear && fortune" -- cgit v1.2.3