7
pure.zsh
7
pure.zsh
@@ -32,10 +32,9 @@
|
|||||||
# enable prompt substitution
|
# enable prompt substitution
|
||||||
setopt PROMPT_SUBST
|
setopt PROMPT_SUBST
|
||||||
|
|
||||||
# only show username if not default.
|
# show username@host if logged in through SSH
|
||||||
# if SSH_CLIENT or SSH_TTY is defined, it's an ssh session.
|
if [[ -n "$SSH_CLIENT" || -n "$SSH_TTY" ]]; then
|
||||||
if [[ "$SSH_CLIENT" ]] || [[ "$SSH_TTY" ]]; then
|
local username='%n@%m '
|
||||||
local username='%n@%m '
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fastest possible way to check if repo is dirty
|
# fastest possible way to check if repo is dirty
|
||||||
|
|||||||
Reference in New Issue
Block a user