summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorChristian Rebischke <Chris.Rebischke@posteo.de>2017-02-10 19:12:05 +0300
committerChristian Rebischke <Chris.Rebischke@posteo.de>2017-02-10 19:12:05 +0300
commit7e25fa1e93fbb02e2276e1d245748d09c7c63e8a (patch)
treeb5c541547b036e32b4f53989fc5a2d8ecdb732e7 /powerlevel9k.zsh-theme
parent15cbe8dbc94ef08506cce5acb2511f51a1cd20be (diff)
Added additional ssh identifier for the right statusbar.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme7
1 files changed, 7 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 1fdedd6b..57d63005 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -670,6 +670,13 @@ prompt_history() {
"$1_prompt_segment" "$0" "$2" "244" "$DEFAULT_COLOR" '%h'
}
+prompt_detect_ssh(){
+ local color="yellow"
+ if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
+ "$1_prompt_segment" "$0" "$2" "$DEFAULT_COLOR" "$color" "ssh"
+ fi
+}
+
# Detection for virtualization (systemd based systems only)
prompt_detect_virt() {
if ! command -v systemd-detect-virt;then