mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Fix make command completion. Fixes issue #928.
Previously, TAB on make CC=/us caused CC=/us/usr/ to appear. This commit fixes this, by properly removing part after equals sign.
This commit is contained in:
parent
f9c2a77c67
commit
222e36ee3e
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
# complicated to do.
|
||||
|
||||
set -l is_assignment "commandline -ct|sgrep '..*='"
|
||||
set -l complete_file_assignment '(commandline -ct)(complete --do-complete=this_command_does_not_exist\ (commandline -ct|sed -e \'s/.*=//\'))'
|
||||
set -l complete_file_assignment '(commandline -ct|sed -e \'s/=.*/=/\')(complete --do-complete=this_command_does_not_exist\ (commandline -ct|sed -e \'s/.*=//\'))'
|
||||
complete -c make --condition $is_assignment -a $complete_file_assignment
|
||||
|
||||
complete -x -c make -a "(__fish_print_make_targets)" --description "Target"
|
||||
|
|
Loading…
Reference in a new issue