Permalink
Browse files

Fixed prompt.

  • Loading branch information...
1 parent c66427a commit eb8a3d35b53144d226516eeb1162704f5c3dfcaf @russell committed Aug 28, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −1 zsh/arrsim.zsh-theme
  2. +0 −7 zshrc
View
@@ -6,7 +6,14 @@ zstyle ':vcs_info:*' enable hg git bzr svn
zstyle ':vcs_info:*' actionformats '%s' ' on %F{2}%b%F{9} doing %F{1}%a%F{5}'
zstyle ':vcs_info:*' formats '%s' ' on %F{5}%b%f '
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
-precmd () { vcs_info }
+function precmd {
+ vcs_info
+ case $TERM in
+ *xterm*)
+ print -Pn "\e]0;%n@%M: %~\a"
+ ;;
+ esac
+}
function prompt_char {
View
7 zshrc
@@ -34,15 +34,8 @@ else
autoload -U colors
colors
source ~/.zsh/arrsim.zsh-theme
- source ~/.antigen/repos/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh.git/lib/git.zsh
fi
-case $TERM in
- *xterm*)
- precmd () {print -Pn "\e]0;%n@%M: %~\a"}
- ;;
-esac
-
# Example aliases
alias zshconfig="source ~/.zshrc"

0 comments on commit eb8a3d3

Please sign in to comment.