ccache: Add -o/--set-config arg name completion

master
Ville Skyttä 2014-11-30 13:06:09 +02:00
parent 89add74ae0
commit dfb2d01bab
1 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,14 @@ _ccache()
-h|--help|-V|--version|-F|--max-files|-M|--max-size)
return
;;
-o|--set-config)
if [[ $cur != *=* ]]; then
COMPREPLY=( $( compgen -S = -W "$( $1 -p 2>/dev/null | \
awk '$3 = "=" { print $2 }' )" -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace
fi
return
;;
esac
$split && return