From e878947cb2b211d500c5aecdd0027d21ffb9c350 Mon Sep 17 00:00:00 2001 From: Terje Larsen Date: Mon, 22 Oct 2012 20:37:47 +0200 Subject: [PATCH] Fix broken git alias completion The previous command outputs a lot of junk, does not strip after the white-space in OSX (10.8.2). Tried out the new command on both Ubuntu (12.04.1) and OSX (10.8.2) --- share/completions/git.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index df6d045dc..b39ae124b 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -243,4 +243,4 @@ complete -f -c git -n '__fish_git_using_command submodule' -a 'add status init u complete -f -c git -n '__fish_git_needs_command' -a whatchanged -d 'Show logs with difference each commit introduces' ## Aliases (custom user-defined commands) -complete -c git -n '__fish_git_needs_command' -a '(git config --get-regexp alias | sed -e "s/^alias\.\(\S\+\).*/\1/")' -d 'Alias (user-defined command)' +complete -c git -n '__fish_git_needs_command' -a '(git config --get-regexp alias | sed "s/^alias\.\([^ ]*\).*/\1/")' -d 'Alias (user-defined command)'