aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2017-02-14 06:07:23 +0300
committerBen Hilburn <bhilburn@gmail.com>2017-02-14 06:07:23 +0300
commit3de352b29627e39dc58ffa5b834e0e23531d95dc (patch)
tree561691120a4a7f7fcd1d682ce83964cf0d9be6ec /powerlevel9k.zsh-theme
parentf68e055f3bf0403cb4c4a9b3b79adb8471fe3872 (diff)
Adding `ssh` segment back with some minor changes.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme6
1 files changed, 6 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 49fdaf09..10b2b011 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -933,6 +933,12 @@ prompt_rvm() {
fi
}
+prompt_ssh() {
+ if [[ -n "$SSH_CLIENT" ]] || [[ -n "$SSH_TTY" ]]; then
+ "$1_prompt_segment" "$0" "$2" "$DEFAULT_COLOR" "yellow" "" 'SSH_ICON'
+ fi
+}
+
# Status: return code if verbose, otherwise just an icon if an error occurred
set_default POWERLEVEL9K_STATUS_VERBOSE true
set_default POWERLEVEL9K_STATUS_OK_IN_NON_VERBOSE false