From 6990871efd032acec88ae4272be20b1d144c3509 Mon Sep 17 00:00:00 2001 From: nulltrek Date: Wed, 25 Sep 2013 22:25:04 +0200 Subject: [PATCH] Fix git completions when aliased command is not found. --- share/completions/git.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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