# HG changeset patch # User Oleksandr Gavenko # Date 1320656794 -7200 # Node ID fd0adcd27f18e7a990abb0a23be9a747dc72d62c # Parent d8ec70cb1e4ce0e66459dbb5b5f22f5b0cdb5b21 Complete dirs for '-C' for make. diff -r d8ec70cb1e4c -r fd0adcd27f18 .bashrc --- 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]}