Fix git completions when aliased command is not found.

This commit is contained in:
nulltrek 2013-09-25 22:25:04 +02:00 committed by David Adam
parent a62ebc9a69
commit 6990871efd

View file

@ -53,7 +53,7 @@ function __fish_git_using_command
end
# aliased command
set -l aliased (command git config --get "alias.$cmd[2]" | sed 's/ .*$//')
set -l aliased (command git config --get "alias.$cmd[2]" ^ /dev/null | sed 's/ .*$//')
if [ $argv[1] = "$aliased" ]
return 0
end