From c3a676168786070c62c08532cbdc34efa74bdd84 Mon Sep 17 00:00:00 2001 From: maudin Date: Wed, 9 Nov 2022 16:38:52 +0100 Subject: [PATCH] maybe the end of 'r' completion bug --- hybris.zsh | 4 ++++ zshrc | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hybris.zsh b/hybris.zsh index 9204195..b559945 100644 --- a/hybris.zsh +++ b/hybris.zsh @@ -45,3 +45,7 @@ export WATCH=all export WATCHFMT="%n has %a %l from %M" export ROBESPIERRE=/home/hybris/dev/robespierre/infra export PATH=$ROBESPIERRE/bin:$HOME/.scripts:$PATH + +# Fix for compdef, taken from https://github.com/seletskiy/zsh-zgen-compinit-tweak +alias compinit='compinit-zgen' +function compinit-zgen() { grep -q ".zgen" <<< "${@}" && \compinit "${@}" } diff --git a/zshrc b/zshrc index 319d10c..df2bbac 100644 --- a/zshrc +++ b/zshrc @@ -1,10 +1,6 @@ # Load zgen source "${HOME}/.zgen/zgen.zsh" -# Required for compdef calls to work -autoload -Uz compinit && \ - compinit -C - # Plugins and configuration generator if ! zgen saved; then # Configuration