From 5631c6d58c53de238c29021c88cc2b55f58d8e8e Mon Sep 17 00:00:00 2001 From: steveokard Date: Mon, 31 May 2021 06:14:55 -0400 Subject: [PATCH] added magic completion --- zsh/.zshrc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 81d178c..f06fa0e 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -90,13 +90,14 @@ zstyle ':fzf-tab:complete:kill:argument-rest' extra-opts --preview=$extract'ps - zstyle ":completion:*:git-checkout:*" sort false zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} # Magic Generate Completions -# GENCOMPL_FPATH=$HOME/.cache/zsh-completion-generator -# if [ ! -d "$GENCOMPL_FPATH" ]; then - # mkdir -p $GENCOMPL_FPATH -# fi -# fpath=($GENCOMPL_FPATH $fpath) -# zstyle :plugin:zsh-completion-generator programs fzf -# zinit wait'3' lucid for RobSis/zsh-completion-generator +GENCOMPL_FPATH=$HOME/.cache/zsh-completion-generator +GENCOMPL_PY=python3 +if [ ! -d "$GENCOMPL_FPATH" ]; then + mkdir -p $GENCOMPL_FPATH +fi +fpath=($GENCOMPL_FPATH $fpath) +zstyle :plugin:zsh-completion-generator programs fzf +zinit wait'3' lucid for RobSis/zsh-completion-generator # FZF zinit ice from"gh-r" as"command" zinit light junegunn/fzf