From d74011b8dc7c737937e30e3ad6ef83c9aa65c44c Mon Sep 17 00:00:00 2001 From: crater2150 Date: Sun, 11 Mar 2018 12:19:47 +0100 Subject: [PATCH] update "re" completion --- compdef/_re | 6 +++++- completion.zsh | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/compdef/_re b/compdef/_re index 3dda686..9fc68c6 100644 --- a/compdef/_re +++ b/compdef/_re @@ -1,3 +1,7 @@ #compdef re -_arguments -A "*" '-d[directory]:dirname:_dirs' ":script:_files -W $XDG_CONFIG_HOME/re/" +_arguments -A "*" \ + '--dir[directory]:dirname:_dirs' '-d[directory]:dirname:_dirs' \ + '--dry-run[dont run, just display]' '-n[dont run, just display]' \ + '--edit[open in editor]' '-e[open in editor]' \ + ":script:_files -W $XDG_CONFIG_HOME/re/" diff --git a/completion.zsh b/completion.zsh index 8502d64..fc0c3da 100644 --- a/completion.zsh +++ b/completion.zsh @@ -1,6 +1,5 @@ # autoload completions -fpath+=( "${ZDOTDIR:+ZDOTDIR}/compdef" ) -fpath+=( "/etc/zsh/compdef" ) +fpath=( "${ZDOTDIR:+ZDOTDIR}/compdef" "/etc/zsh/compdef" $fpath ) autoload -U /etc/zsh/compdef/*(:t) if [[ -d $ZDOTDIR/compdef ]]; then