From 2b286e1c866b54e22d40b85a9ae8457b810a1316 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Tue, 3 Sep 2013 09:55:19 +0300 Subject: [PATCH] Added correct quoting to completion --- qcd_function | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcd_function b/qcd_function index d6e8722..5c6fcb3 100644 --- a/qcd_function +++ b/qcd_function @@ -47,13 +47,14 @@ _qcd() COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '-i -h -l -L -m ' -- $cur ) ) + COMPREPLY=( $( compgen -W "-a -i -h -l -L -m" -- $cur ) ) return 0 fi COMPREPLY=( $( compgen -W "$( grep -h ^"$cur" ~/.qcd <( tac ~/.bash_cdhistory ) | cut -d: -f1 )" ) ) } complete -F _qcd qcd ' >> ~/.bash_completion + . /etc/bash_completion return ;; L)