diff options
Diffstat (limited to 'share/completions/git.fish')
-rw-r--r-- | share/completions/git.fish | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/completions/git.fish b/share/completions/git.fish index 6a316b2c..4a241472 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -46,6 +46,12 @@ function __fish_git_using_command if [ $argv[1] = $cmd[2] ] return 0 end + + # aliased command + set aliased (git config --get "alias.$cmd[2]" | sed 's/ .*$//') + if [ $argv[1] = "$aliased" ] + return 0 + end end return 1 end |