diff --git a/share/completions/git.fish b/share/completions/git.fish index 138b2c4a5..d4b9fcf34 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -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