all repos — nixfiles @ bce46573aedafe5a484b5bf3d54dea1f18c53204

System and user configuration, managed by nix and home-manager

zsh: Use agkozak prompt

Alan Pearce
commit

bce46573aedafe5a484b5bf3d54dea1f18c53204

parent

6b54a2ee91892d74e41631e5bb88581c53f3408f

1 file changed, 2 insertions(+), 13 deletions(-)

jump to
M zsh/.config/zsh/.zshrczsh/.config/zsh/.zshrc
@@ -139,6 +139,7 @@ zplugin ice wait'1' lucid
zplugin load "caarlos0/zsh-open-pr" zplugin ice blockf zplugin light "mollifier/anyframe" +zplugin light agkozak/agkozak-zsh-prompt zplugin snippet "OMZ::lib/functions.zsh" zplugin snippet "OMZ::lib/termsupport.zsh"
@@ -204,20 +205,8 @@ then
unsetopt zle PROMPT="> " else - unset RPROMPT - # show username@host if logged in through SSH - [[ "$SSH_CONNECTION" != '' ]] && prompt_pure_username=' %F{242}%n@%m%f' - - # show username@host if root, with username in white - [[ $UID -eq 0 ]] && prompt_pure_username=' %F{white}%n%f%F{242}@%m%f' - - ZSH_THEME_TERM_TAB_TITLE_IDLE="" - ZSH_THEME_TERM_TITLE_IDLE="" + AGKOZAK_PROMPT_DIRTRIM=0 - setopt prompt_subst - setopt prompt_cr - PROMPT='%F{blue}%~%f${prompt_pure_username} -%(?.%F{magenta}.%F{red})>%f ' fi if [[ -n $commands[fzf] ]]