summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
authorAlan Pearce2018-12-19 11:46:56 +0100
committerAlan Pearce2018-12-19 11:47:09 +0100
commitbce46573aedafe5a484b5bf3d54dea1f18c53204 (patch)
treedd599aac9fdf38c8c03d1d4aaf598249eccbbc0a /zsh
parent6b54a2ee91892d74e41631e5bb88581c53f3408f (diff)
downloaddotfiles-bce46573aedafe5a484b5bf3d54dea1f18c53204.tar.lz
dotfiles-bce46573aedafe5a484b5bf3d54dea1f18c53204.tar.zst
dotfiles-bce46573aedafe5a484b5bf3d54dea1f18c53204.zip
zsh: Use agkozak prompt
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.config/zsh/.zshrc15
1 files changed, 2 insertions, 13 deletions
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] ]]