summaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zshrc8
1 files changed, 7 insertions, 1 deletions
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"