diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-02-14 06:07:23 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2017-02-14 06:07:23 +0300 |
commit | 3de352b29627e39dc58ffa5b834e0e23531d95dc (patch) | |
tree | 561691120a4a7f7fcd1d682ce83964cf0d9be6ec /powerlevel9k.zsh-theme | |
parent | f68e055f3bf0403cb4c4a9b3b79adb8471fe3872 (diff) |
Adding `ssh` segment back with some minor changes.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 6 |
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 |