diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2015-09-22 20:25:14 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2015-09-22 20:25:14 +0200 |
commit | fb615843b329b4d3c303b9cebe2af134a52b5bfd (patch) | |
tree | 09972d4ad0cb635bb41018d0bf3e2342c4a2f496 /share/completions/git.fish | |
parent | c6d808a0d8de84116b353b1a49b04a7c43a7beda (diff) |
git completion: Describe aliases with their definitions
I could have sworn we had this already.
Diffstat (limited to 'share/completions/git.fish')
-rw-r--r-- | share/completions/git.fish | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/completions/git.fish b/share/completions/git.fish index c534b7e6..a845eea4 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' |