From fb615843b329b4d3c303b9cebe2af134a52b5bfd Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 22 Sep 2015 20:25:14 +0200 Subject: [PATCH] git completion: Describe aliases with their definitions I could have sworn we had this already. --- share/completions/git.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index c534b7e61..a845eea48 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -109,7 +109,7 @@ function __fish_git_aliases begin set -l IFS "." echo -n $key | read -l _ name - echo $name + printf "%s\t%s\n" $name "Alias for $value" end end end @@ -495,7 +495,7 @@ complete -f -c git -n '__fish_git_using_command submodule; and __fish_git_seen_s 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 '(__fish_git_aliases)' -d 'Alias (user-defined command)' +complete -c git -n '__fish_git_needs_command' -a '(__fish_git_aliases)' ### git clean complete -f -c git -n '__fish_git_needs_command' -a clean -d 'Remove untracked files from the working tree'