diff options
author | June McEnroe <programble@gmail.com> | 2013-10-30 13:39:20 -0400 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2013-10-30 13:39:20 -0400 |
commit | 6a54e61eaf4a5a0d3a7b1ce994b40894c0e9c86f (patch) | |
tree | 492304fad5a8672d81a7140da91e97cb387dd2d8 /.zsh | |
parent | Only load chruby if it exists (diff) | |
download | src-6a54e61eaf4a5a0d3a7b1ce994b40894c0e9c86f.tar.gz src-6a54e61eaf4a5a0d3a7b1ce994b40894c0e9c86f.zip |
Show hostname in prompt over SSH
Diffstat (limited to '')
-rw-r--r-- | .zshrc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc index e258a29e..c30f97e9 100644 --- a/.zshrc +++ b/.zshrc @@ -35,7 +35,8 @@ bindkey "\e[F" end-of-line autoload colors zsh/terminfo colors -PROMPT=$'%{$terminfo[bold]$fg[green]%}[%{$fg[blue]%}%30<..<%~$(gitprompt)%{$fg[green]%}]%(!.#.$)%{$terminfo[sgr0]$reset_color%} ' +[ "$SSH_CLIENT" ] && PROMPT_HOST="%{$fg[magenta]%}%m:" +PROMPT=$'%{$terminfo[bold]$fg[green]%}[$PROMPT_HOST%{$fg[blue]%}%30<..<%~$(gitprompt)%{$fg[green]%}]%(!.#.$)%{$terminfo[sgr0]$reset_color%} ' RPROMPT="%(?..%{$terminfo[bold]$fg[green]%}[%{$fg[red]%}%?%{$fg[green]%}]%{$terminfo[sgr0]%})" # Libs and stuff |