mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 12:21:19 -03:00
Fix git completions when aliased command is not found.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user