From: Simon Ruderich Date: Mon, 17 May 2010 10:29:53 +0000 (+0200) Subject: zsh/rc: Move prompt below vcs_info. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=31833e1b31ba6a81947aca55f17581f107ee1e9f;p=config%2Fdotfiles.git zsh/rc: Move prompt below vcs_info. No functional changes. --- diff --git a/zsh/rc b/zsh/rc index 643d7ae..e29219a 100644 --- a/zsh/rc +++ b/zsh/rc @@ -153,16 +153,6 @@ local green="%{${fg[green]}%}" local yellow="%{${fg[yellow]}%}" local default="%{${fg[default]}%}" -# Set the default prompt. The current host and working directory is displayed, -# the exit code of the last command if it wasn't 0, the number of running jobs -# if not 0. -# -# The prompt is in green and blue to make easily detectable, the error exit -# code in red and bold and the job count in yellow. -PROMPT="$green%B%m%b$default:$blue%B%~%b$default \ -%(1j.$yellow%j$default.)%# \ -%(?..($red%B%?%b$default%) )" - # vcs_info was added in 4.3.9 but it works in earlier versions too. So load it # if the necessary files are available in ~/.zsh/functions/vcs_info (often a # symbolic link to current checkout of Zsh's sources). @@ -268,6 +258,16 @@ if [[ $ZSH_VERSION == (4.3.<9->|4.<4->*|<5->*) || fi fi +# Set the default prompt. The current host and working directory is displayed, +# the exit code of the last command if it wasn't 0, the number of running jobs +# if not 0. +# +# The prompt is in green and blue to make easily detectable, the error exit +# code in red and bold and the job count in yellow. +PROMPT="$green%B%m%b$default:$blue%B%~%b$default \ +%(1j.$yellow%j$default.)%# \ +%(?..($red%B%?%b$default%) )" + unset red blue green yellow default # When screen, xterm or rxvt is used set the name of the window to the