diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/completion | 3 | ||||
-rw-r--r-- | etc/completions/_pkg | 21 |
2 files changed, 24 insertions, 0 deletions
diff --git a/etc/completion b/etc/completion index f46a6d5..6ccf8fa 100644 --- a/etc/completion +++ b/etc/completion @@ -1,5 +1,8 @@ ## vim:ft=zsh +# Add own completions +fpath=($ZDIR/completions $fpath) + zstyle :compinstall filename "$HOME/.zshrc" ls-colors: zstyle ':completion:*' list-colors $(dircolors $HOME/packages/zsh/etc/dircolors | head -n 1 | sed -r 's/LS_COLORS=|;$//g') # Mark the current selection when tabbing through possible completions diff --git a/etc/completions/_pkg b/etc/completions/_pkg new file mode 100644 index 0000000..4953a81 --- /dev/null +++ b/etc/completions/_pkg @@ -0,0 +1,21 @@ +#compdef pkg +## vim:ft=zsh + +local values + +values=( + 'add' + 'changelog' + 'changeroot' + 'delete' + 'info' + 'install' + 'list' + 'list-all' + 'log' + 'remove' + 'status' + 'update' + '' +) +_values -w -s ' ' 'pkg function' $values |