mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-05 04:03:22 +03:00
bash-completion: silent cmake -D lookup
The completion for -D tries to read the cache via 'cmake -LA -N', but this prints a warning. Silent the lookup by redirecting this warning to null.
This commit is contained in:
1 parent
7a92fb7bf6
commit
64aeb520ca
1 file changed
+2
-2
@@ -76,8 +76,8 @@ _cmake()
|
||||
compopt -o nospace
|
||||
else
|
||||
# complete variable names
|
||||
COMPREPLY=( $( compgen -W '$( cmake -LA -N | tail -n +2 |
|
||||
cut -f1 -d: )' -P "$prefix" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '$( cmake -LA -N 2>/dev/null |
|
||||
tail -n +2 | cut -f1 -d: )' -P "$prefix" -- "$cur" ) )
|
||||
compopt -o nospace
|
||||
fi
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user