Added correct quoting to completion
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user