mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 03:32:27 +08:00
alias: identify as alias in description.
Like so: ~ $ alias foo=bar ~ $ functions foo function foo --description 'alias foo=bar' bar $argv; end
This commit is contained in:
parent
f382fa8e8a
commit
2d46969d3e
|
@ -60,5 +60,5 @@ function alias --description 'Legacy function for creating shellscript functions
|
|||
set prefix command
|
||||
end
|
||||
end
|
||||
echo "function $name --wraps $first_word; $prefix $first_word $body \$argv; end" | source
|
||||
echo "function $name --wraps $first_word --description \"alias $argv\"; $prefix $first_word $body \$argv; end" | source
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user