mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 02:13:38 +08:00
Fix ninja target completions without the -C flag
This commit is contained in:
parent
82b811281d
commit
671b941b52
|
@ -1,7 +1,7 @@
|
||||||
function __fish_ninja
|
function __fish_ninja
|
||||||
set -l saved_args $argv
|
set -l saved_args $argv
|
||||||
set -l dir .
|
set -l dir .
|
||||||
if argparse -i C/dir= -- (commandline -opc) && set -ql _flag_C
|
if argparse -i C/dir= -- (commandline -opc)
|
||||||
# Using eval to expand ~ and variables specified on the commandline.
|
# Using eval to expand ~ and variables specified on the commandline.
|
||||||
eval command ninja -C$_flag_C \$saved_args
|
eval command ninja -C$_flag_C \$saved_args
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user