aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Terje Larsen <terlar@gmail.com>2012-10-22 20:37:47 +0200
committerGravatar Terje Larsen <terlar@gmail.com>2012-10-22 20:37:47 +0200
commite878947cb2b211d500c5aecdd0027d21ffb9c350 (patch)
tree219d34dd8d49e578c6a680e2c1c4bb3bdc8b5f4c
parentf56f84c6acc336a93a998af311c6e31703c28801 (diff)
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)
-rw-r--r--share/completions/git.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/completions/git.fish b/share/completions/git.fish
index df6d045d..b39ae124 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)'