Adding ssh
segment back with some minor changes.
This commit is contained in:
parent
f68e055f3b
commit
3de352b296
3 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue