summaryrefslogtreecommitdiff
path: root/.zsh/zshrc
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-11-17 10:06:42 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-11-17 10:06:42 +0100
commit22299175197c40fa786bc36faa553826c1b41da4 (patch)
tree2f191ff8a41b1875dfd2e4a4f848b392739c35e2 /.zsh/zshrc
parentf5a9de0deaef91f548e068405fa6a9190feadf81 (diff)
downloaddotfiles-22299175197c40fa786bc36faa553826c1b41da4.tar.gz
dotfiles-22299175197c40fa786bc36faa553826c1b41da4.tar.bz2
dotfiles-22299175197c40fa786bc36faa553826c1b41da4.zip
Use a different prompt color when using SSH.
Diffstat (limited to '')
-rw-r--r--.zsh/zshrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/.zsh/zshrc b/.zsh/zshrc
index ef90ce5..2d25537 100644
--- a/.zsh/zshrc
+++ b/.zsh/zshrc
@@ -89,7 +89,12 @@ zstyle ":completion:*:default" list-colors ${(s.:.)LS_COLORS} # make filecomplet
# Prompt {{{
#################################################
autoload -U promptinit
-promptinit; prompt gentoo
+promptinit
+
+local prompt_color="green red"
+[[ -n "$SSH_CLIENT" ]] && prompt_color="yellow cyan"
+
+prompt gentoo blue ${=prompt_color}
# remove RPROMPT when command finished
setopt transient_rprompt