summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zsh/rc12
1 files changed, 12 insertions, 0 deletions
diff --git a/zsh/rc b/zsh/rc
index 3170617..1b56d48 100644
--- a/zsh/rc
+++ b/zsh/rc
@@ -60,6 +60,18 @@ setopt HIST_REDUCE_BLANKS
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
+if [[ ${TERM_PROGRAM} != iTerm.app ]]; then
+ autoload -Uz vcs_info
+
+ zstyle ':vcs_info:*' enable git
+ zstyle ':vcs_info:*' formats '[%b]'
+
+ RPROMPT='${vcs_info_msg_0_}'
+ precmd_functions+=(vcs_info)
+
+ setopt PROMPT_SUBST
+fi
+
source_if_exists dotfiles-${UNAME}/zsh/rc
source_if_exists dotfiles-${DOMAIN}/zsh/rc
source_if_exists dotfiles-${HOST}/zsh/rc