mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Add default hostname check to Agnoster theme
This commit is contained in:
parent
b908feebcf
commit
5d6e41b8ae
1 changed files with 2 additions and 1 deletions
|
|
@ -79,7 +79,8 @@ prompt_end() {
|
|||
|
||||
# Context: user@hostname (who am I and where am I)
|
||||
prompt_context() {
|
||||
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
|
||||
if [[ "$USER" != "$DEFAULT_USER" || \
|
||||
( -n "$SSH_CLIENT" && "$HOSTNAME" != "$DEFAULT_HOSTNAME" ) ]]; then
|
||||
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER@%m"
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue