Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

show hostname in prompt when connecting over ssh

  • Loading branch information...
commit ca4d95179b62ceb1a760a2922953edd01d75c382 1 parent 18d8f88
@ryanb authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.