ccache: Add -o/--set-config arg name completion
This commit is contained in:
parent
89add74ae0
commit
dfb2d01bab
@ -14,6 +14,14 @@ _ccache()
|
|||||||
-h|--help|-V|--version|-F|--max-files|-M|--max-size)
|
-h|--help|-V|--version|-F|--max-files|-M|--max-size)
|
||||||
return
|
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
|
esac
|
||||||
|
|
||||||
$split && return
|
$split && return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user