mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 15:37:24 +00:00
Re-enable alias redefinition
Fixes #494 Signed-off-by: lledey <lledey@gmail.com>
This commit is contained in:
parent
5b173dafae
commit
f0000ea7d2
1 changed files with 0 additions and 3 deletions
|
@ -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…
Reference in a new issue