summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotfiles-darwin/zsh/env5
-rw-r--r--dotfiles-darwin/zsh/rc17
-rw-r--r--zsh/rc12
3 files changed, 17 insertions, 17 deletions
diff --git a/dotfiles-darwin/zsh/env b/dotfiles-darwin/zsh/env
index b5b2c25..9c4badb 100644
--- a/dotfiles-darwin/zsh/env
+++ b/dotfiles-darwin/zsh/env
@@ -5,8 +5,3 @@ export XDG_CACHE_HOME=~/Library/Caches
export XDG_CONFIG_HOME=~/Library/Preferences
export XDG_DATA_HOME=~/Library
export XDG_RUNTIME_DIR=${TMPDIR%/}
-
-# Prevent Apple Terminal from cluttering ${HOME}.
-if [[ ${TERM_PROGRAM} == Apple_Terminal ]]; then
- SHELL_SESSIONS_DISABLE=1
-fi
diff --git a/dotfiles-darwin/zsh/rc b/dotfiles-darwin/zsh/rc
index 9a71cdc..bb9e027 100644
--- a/dotfiles-darwin/zsh/rc
+++ b/dotfiles-darwin/zsh/rc
@@ -12,3 +12,20 @@ if (( ${+commands[gls]} )); then
else
alias lsh='ls -Shlr | cut -f5- -w'
fi
+
+# Prevent Apple Terminal from cluttering ${HOME}.
+if [[ ${TERM_PROGRAM} == Apple_Terminal ]]; then
+ SHELL_SESSIONS_DISABLE=1
+fi
+
+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
diff --git a/zsh/rc b/zsh/rc
index 0a19413..caa2f0c 100644
--- a/zsh/rc
+++ b/zsh/rc
@@ -70,18 +70,6 @@ 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 zsh/rc
compinit -d ${XDG_CACHE_HOME}/zsh/compdump