commit bc4f3476cded71a096adf46534784cdd84edb913

Author: U0 <rhyzix@gmail.com>
Date:   Wed Jan 30 15:02:23 2013 +0800

    add completion support for aliased command
    Make a variable local
This commit is contained in:
ridiculousfish 2013-01-30 23:59:52 -08:00
parent 7df89566f3
commit 406d7f1a47

View file

@ -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