author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 07 Nov 2011 11:06:34 +0200 | |
changeset 262 | fd0adcd27f18 |
parent 261 | d8ec70cb1e4c |
child 263 | 9a0fc755c9f9 |
--- a/.bashrc Thu Nov 03 14:32:50 2011 +0200 +++ b/.bashrc Mon Nov 07 11:06:34 2011 +0200 @@ -250,6 +250,10 @@ COMPREPLY=( $(compgen -f -- "$cur") ) return 0 fi + if [[ $prev = -C ]]; then + COMPREPLY=( $(compgen -d -- "$cur") ) + return 0 + fi for (( i=1; i < ${#COMP_WORDS[@]}-1; i++ )); do if [[ ${COMP_WORDS[i]} == -f ]]; then mk=${COMP_WORDS[i+1]}