summary refs log tree commit diff
path: root/pkgs/development/interpreters/babashka/completions/bb.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/interpreters/babashka/completions/bb.zsh')
-rw-r--r--pkgs/development/interpreters/babashka/completions/bb.zsh6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/babashka/completions/bb.zsh b/pkgs/development/interpreters/babashka/completions/bb.zsh
new file mode 100644
index 00000000000..50821974052
--- /dev/null
+++ b/pkgs/development/interpreters/babashka/completions/bb.zsh
@@ -0,0 +1,6 @@
+_bb_tasks() {
+    local matches=(`bb tasks |tail -n +3 |cut -f1 -d ' '`)
+    compadd -a matches
+    _files # autocomplete filenames as well
+}
+compdef _bb_tasks bb