diff options
Diffstat (limited to 'qcd.bash-completion')
| -rw-r--r-- | qcd.bash-completion | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/qcd.bash-completion b/qcd.bash-completion new file mode 100644 index 0000000..f0099e0 --- /dev/null +++ b/qcd.bash-completion @@ -0,0 +1,17 @@ +# Bash completion for the qcd() function + +_qcd () { + local cur + local commands=( + shortcut + ) + + COMPREPLY=() + cur=${COMP_WORDS[COMP_CWORD]} + + COMPREPLY=( $( compgen -W "${commands[*]}" -- $cur ) ) + + return 0 +} + +complete -F _qcd qcd |
