aboutsummaryrefslogtreecommitdiff
path: root/zsh/functions/_boom
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/functions/_boom')
-rw-r--r--zsh/functions/_boom29
1 files changed, 0 insertions, 29 deletions
diff --git a/zsh/functions/_boom b/zsh/functions/_boom
deleted file mode 100644
index 74e5d4e..0000000
--- a/zsh/functions/_boom
+++ /dev/null
@@ -1,29 +0,0 @@
-#compdef boom
-
-local state line cmds ret=1
-
-_arguments -C '1: :->cmds' '*: :->args'
-
-case $state in
- cmds)
- local -a cmds
- cmds=(
- 'all:show all items in all lists'
- 'edit:edit the boom JSON file in $EDITOR'
- 'help:help text'
- )
- _describe -t commands 'boom command' cmds && ret=0
- _values 'lists' $(boom | awk '{print $1}')
- ;;
- args)
- case $line[1] in
- (boom|all|edit|help)
- ;;
- *)
- _values 'items' `boom $line[1] | awk '{print $1}' | sed -e 's/://'` 2>/dev/null && ret=0
- ;;
- esac
- ;;
-esac
-
-return ret