aboutsummaryrefslogtreecommitdiff
path: root/config/zsh/.zshrc
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-25 09:33:51 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-25 09:33:51 +0100
commitbef00325cb5726f09d358344e7c23e3eab3d80ac (patch)
tree5ab7994bfe80abde37d39a431b065f2e31fc92b2 /config/zsh/.zshrc
parent3add923d5e2869ba4bcf5baa4050b80181a43b36 (diff)
downloaddotfiles-bef00325cb5726f09d358344e7c23e3eab3d80ac.tar.gz
dotfiles-bef00325cb5726f09d358344e7c23e3eab3d80ac.tar.bz2
dotfiles-bef00325cb5726f09d358344e7c23e3eab3d80ac.zip
Added zcompdup, xmonad, ipython and jupyter support for XDG dirs
Diffstat (limited to 'config/zsh/.zshrc')
-rw-r--r--config/zsh/.zshrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc
index aef07dd..372b828 100644
--- a/config/zsh/.zshrc
+++ b/config/zsh/.zshrc
@@ -31,7 +31,9 @@ zstyle ':completion:*' menu select # menu like
zstyle ':completion:*' matcher-list '' \
'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=*' 'r:|=* l:|=* r:|=*' # case insensitive
zmodload zsh/complist
-compinit
+COMPFILE="$XDG_CACHE_HOME/zsh/zcompdup-$ZSH_VERSION"
+mkdir -p "$(dirname "$COMPFILE")"
+compinit -d "$COMPFILE"
# _comp_options+=(globdots)
# vim keybindings in tab completion menu (https://www.youtube.com/watch?v=eLEo4OQ-cuQ)