Skip to content

Commit

Permalink
Fix bash completion
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwhitaker committed Aug 4, 2024
1 parent 9f0b55b commit 5e7ce68
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion completions/runny.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/usr/bin/env bash

complete -W "$(runny | cut -f1)" runny
# See https://opensource.com/article/18/3/creating-bash-completion-script
_runny_completions() {
runny_commands=$(runny | cut -f1)
COMPREPLY=($(compgen -W "${runny_commands}" "${COMP_WORDS[1]}"))
}

complete -F _runny_completions runny

0 comments on commit 5e7ce68

Please sign in to comment.