aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/make.fish
diff options
context:
space:
mode:
authorGravatar Konrad Borowski <glitchmr@myopera.com>2013-07-25 15:05:09 +0200
committerGravatar Konrad Borowski <glitchmr@myopera.com>2013-07-25 15:06:39 +0200
commit222e36ee3e969bb944e49bf38ce1744f5e36c549 (patch)
treee8eb2f9181e3cb5f41dcea52927c94289ba2ee2f /share/completions/make.fish
parentf9c2a77c67754324f3036ec79501c6131d19562b (diff)
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.
Diffstat (limited to 'share/completions/make.fish')
-rw-r--r--share/completions/make.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/make.fish b/share/completions/make.fish
index 05845e10..dfe5090a 100644
--- a/share/completions/make.fish
+++ b/share/completions/make.fish
@@ -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"