From e2ad8c0877699bceeb4a1484912b8b33a56f99ff Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 21 Jul 2016 17:30:37 -0400 Subject: Initial commit. First working version of qcd. The initial working `qcd` function and bash completion function copied from my dotfiles. Shortcuts and directory paths are specified manually in both scripts. --- qcd.bash-completion | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 qcd.bash-completion (limited to 'qcd.bash-completion') 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 -- cgit v1.2.3