Browse files

show hostname in prompt when connecting over ssh

  • Loading branch information...
1 parent 18d8f88 commit ca4d95179b62ceb1a760a2922953edd01d75c382 @ryanb committed Feb 17, 2013
Showing with 6 additions and 3 deletions.
  1. +0 −2 oh-my-zsh/custom/plugins/rbates/rbates.plugin.zsh
  2. +5 −1 oh-my-zsh/custom/rbates.zsh-theme
  3. +1 −0 zshrc
View
2 oh-my-zsh/custom/plugins/rbates/rbates.plugin.zsh
@@ -6,8 +6,6 @@ h() { cd ~/$1; }
_h() { _files -W ~/ -/; }
compdef _h h
-export EDITOR='mate -w'
-
# autocorrect is more annoying than helpful
unsetopt correct_all
View
6 oh-my-zsh/custom/rbates.zsh-theme
@@ -1,4 +1,8 @@
-PROMPT='%3~$(git_prompt_info)%# '
+if [[ -n $SSH_CONNECTION ]]; then
+ PROMPT='%m:%3~$(git_prompt_info)%# '
+else
+ PROMPT='%3~$(git_prompt_info)%# '
+fi
ZSH_THEME_GIT_PROMPT_PREFIX="["
ZSH_THEME_GIT_PROMPT_SUFFIX="]"
View
1 zshrc
@@ -6,6 +6,7 @@ DISABLE_LS_COLORS="true"
plugins=(git bundler brew gem rbates)
export PATH="/usr/local/bin:$PATH"
+export EDITOR='mate -w'
source $ZSH/oh-my-zsh.sh

0 comments on commit ca4d951

Please sign in to comment.