mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
Re-enable alias redefinition
Fixes #494 Signed-off-by: lledey <lledey@gmail.com>
This commit is contained in:
parent
5b173dafae
commit
f0000ea7d2
@ -40,9 +40,6 @@ function alias --description "Legacy function for creating shellscript functions
|
||||
set prefix command
|
||||
case builtin
|
||||
set prefix builtin
|
||||
case function
|
||||
printf ( _ "%s: A function with the name '%s' already exists. Use the 'functions' or 'funced' commands to edit it.") alias "$name"
|
||||
return 1
|
||||
end
|
||||
|
||||
eval "function $name; $prefix $body \$argv; end"
|
||||
|
Loading…
x
Reference in New Issue
Block a user