ccache: Add -o/--set-config arg name completion
parent
89add74ae0
commit
dfb2d01bab
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue