mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Fix git completions when aliased command is not found.
This commit is contained in:
parent
a62ebc9a69
commit
6990871efd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue