From bce46573aedafe5a484b5bf3d54dea1f18c53204 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 19 Dec 2018 11:46:56 +0100 Subject: zsh: Use agkozak prompt --- zsh/.config/zsh/.zshrc | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'zsh') diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 198d4d9..5265d1f 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.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' + AGKOZAK_PROMPT_DIRTRIM=0 - # 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="" - - setopt prompt_subst - setopt prompt_cr - PROMPT='%F{blue}%~%f${prompt_pure_username} -%(?.%F{magenta}.%F{red})>%f ' fi if [[ -n $commands[fzf] ]] -- cgit 1.4.1