Skip to content

Commit

Permalink
feat: add completion for zap (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianChiarulli authored Nov 13, 2022
1 parent 95c9f79 commit f1235c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions completion/_zap
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#compdef zap

_arguments -C -s \
"(-)"{-h,--help}"[Show help information]" \
"(-)"{-v,--version}"[Show version information]" \
"(-)"{-u,--update}"[Update plugins]" \
"(-)"{-c,--clean}"[Remove unused plugins]" \
1 change: 1 addition & 0 deletions zap.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh
# shellcheck disable=SC1090

fpath=(~/.local/share/zap/completion $fpath)
rm -rf "$HOME/.local/share/zap/installed_plugins"
export ZAP_DIR="$HOME/.local/share/zap"
export ZAP_PLUGIN_DIR="$ZAP_DIR/plugins"
Expand Down

0 comments on commit f1235c0

Please sign in to comment.