mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
commit bc4f3476cded71a096adf46534784cdd84edb913
Author: U0 <rhyzix@gmail.com> Date: Wed Jan 30 15:02:23 2013 +0800 add completion support for aliased command Make a variable local
This commit is contained in:
parent
7df89566f3
commit
406d7f1a47
1 changed files with 6 additions and 0 deletions
|
@ -46,6 +46,12 @@ function __fish_git_using_command
|
|||
if [ $argv[1] = $cmd[2] ]
|
||||
return 0
|
||||
end
|
||||
|
||||
# aliased command
|
||||
set aliased (git config --get "alias.$cmd[2]" | sed 's/ .*$//')
|
||||
if [ $argv[1] = "$aliased" ]
|
||||
return 0
|
||||
end
|
||||
end
|
||||
return 1
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue