Add .oh-my-zsh/custom/prompt.zsh
This commit is contained in:
parent
b6501af826
commit
073072f861
1 changed files with 6 additions and 0 deletions
6
dot_oh-my-zsh/custom/prompt.zsh
Normal file
6
dot_oh-my-zsh/custom/prompt.zsh
Normal file
|
@ -0,0 +1,6 @@
|
|||
# removes user@hostname from agnoster prompt
|
||||
prompt_context() {
|
||||
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
|
||||
prompt_segment black default "%(!.%{%F{yellow}%}.)"
|
||||
fi
|
||||
}
|
Loading…
Reference in a new issue