From 30be10a7f474e3ccc1c9b2d7bc6bb6c651a74451 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Mon, 10 Aug 2020 21:27:13 +0100 Subject: [PATCH] zsh: replace rupa/z with agkozak/zsh-z zsh-z is a zsh-native plugin which can be installed with antigen. It is a drop-in replacement and does the same thing, but with less management overhead. Set _Z_DATA to be in $XDG_DATA_HOME to un-clutter ~ a little more Signed-off-by: Joe Groocock --- .config/zsh/.zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 4c995b7..9d5fed7 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -23,6 +23,8 @@ export MANPAGER="less -+N" export SYSTEMD_PAGER="less $LESS" # Disable histfile export LESSHISTFILE=- +# Use .local/share for z instead of ~/.z +export _Z_DATA="$XDG_DATA_HOME/z" if exists tput; then export LESS_TERMCAP_mb=$(tput bold; tput setaf 2) # green @@ -72,6 +74,7 @@ antigen bundle zsh-users/zsh-completions antigen bundle zsh-users/zsh-autosuggestions antigen bundle zsh-users/zsh-syntax-highlighting@feature/redrawhook antigen bundle mafredri/zsh-async +antigen bundle agkozak/zsh-z antigen apply @@ -163,7 +166,6 @@ source "$ZSH_DIR/plugins/fish-theme.zsh" source "$ZSH_DIR/plugins/git-rprompt.zsh" [ -f '/usr/share/fzf/key-bindings.zsh' ] && source /usr/share/fzf/key-bindings.zsh [ -f '/usr/share/doc/pkgfile/command-not-found.zsh' ] && source /usr/share/doc/pkgfile/command-not-found.zsh -[ -r '/usr/share/z/z.sh' ] && source /usr/share/z/z.sh # Completion initialisation autoload -U compinit bashcompinit