From 222e36ee3e969bb944e49bf38ce1744f5e36c549 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Thu, 25 Jul 2013 15:05:09 +0200 Subject: [PATCH] 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. --- share/completions/make.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/make.fish b/share/completions/make.fish index 05845e10d..dfe5090a4 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"