From f0000ea7d2f2ee940605e8aca3451de01f7d88c4 Mon Sep 17 00:00:00 2001 From: lledey Date: Sat, 5 Jan 2013 17:03:21 +0100 Subject: [PATCH] Re-enable alias redefinition Fixes #494 Signed-off-by: lledey --- share/functions/alias.fish | 3 --- 1 file changed, 3 deletions(-) diff --git a/share/functions/alias.fish b/share/functions/alias.fish index cbd41d0fb..4b72ecd2f 100644 --- a/share/functions/alias.fish +++ b/share/functions/alias.fish @@ -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"