|
|
@@ -46,9 +46,6 @@ local WORDCHARS=${WORDCHARS//\//}
|
|
|
autoload colors
|
|
|
colors
|
|
|
bright_cyan='%{[96m%}' # not provided by colors
|
|
|
-PROMPT="%{${fg_bold[green]}%}%m%{${reset_color}%}:%{${fg_bold[blue]}%}%30<...<%~%<<%{${reset_color}%}%(!.#.\$) "
|
|
|
-RPROMPT="%(?..%{$fg_bold[red]%}%? %{$reset_color%})" # exit status
|
|
|
-RPROMPT+="%1(j.%{$fg[green]%}%j .)" # suspended jobs
|
|
|
autoload -Uz vcs_info
|
|
|
zstyle ':vcs_info:*' unstagedstr "%{$fg[red]%}*"
|
|
|
zstyle ':vcs_info:*' stagedstr "%{$fg[red]%}+"
|
|
|
@@ -59,9 +56,13 @@ zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b:%r'
|
|
|
zstyle ':vcs_info:bzr:*' use-simple true
|
|
|
zstyle ':vcs_info:*' enable git hg bzr svn cvs
|
|
|
precmd () { vcs_info }
|
|
|
-RPROMPT+='${vcs_info_msg_0_} '
|
|
|
-RPROMPT+="%{$fg_bold[grey]%}%*" # time
|
|
|
-RPROMPT+="%{$reset_color%}"
|
|
|
+PROMPT="%{$fg_bold[grey]%}%* " # time
|
|
|
+PROMPT+="%{${fg_bold[green]}%}%m%{${reset_color}%}:" # host
|
|
|
+PROMPT+="%{${fg_bold[blue]}%}%30<...<%~%<<%{${reset_color}%} " # path
|
|
|
+PROMPT+='${vcs_info_msg_0_} '
|
|
|
+PROMPT+="%(?..%{$fg_bold[red]%}%? %{$reset_color%})" # exit status
|
|
|
+PROMPT+="%1(j.%{$fg[green]%}%j .)" # suspended jobs
|
|
|
+PROMPT+=$'%{$reset_color%} \n%(!.#.\$) '
|
|
|
|
|
|
autoload -U url-quote-magic
|
|
|
zle -N self-insert url-quote-magic
|