Skip to content

Commit

Permalink
show hostname in prompt when connecting over ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanb committed Feb 17, 2013
1 parent 18d8f88 commit ca4d951
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions oh-my-zsh/custom/plugins/rbates/rbates.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion oh-my-zsh/custom/rbates.zsh-theme
Original file line number Diff line number Diff line change
@@ -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="]"
1 change: 1 addition & 0 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ca4d951

Please sign in to comment.