Skip to content

Commit

Permalink
Add zsh completion directive
Browse files Browse the repository at this point in the history
  • Loading branch information
alebeck committed Dec 15, 2024
1 parent 27ca886 commit bb1f24a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion completions/boring.zsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#compdef boring

_boring() {
local -a commands
commands=(
Expand Down Expand Up @@ -55,4 +57,8 @@ _boring() {
esac
}

compdef _boring boring
if [ "$funcstack[1]" = "_boring" ]; then
_boring
else
compdef _boring boring
fi

0 comments on commit bb1f24a

Please sign in to comment.