zshrc: Remove `refunc' as `freload' does the same thing
authorFrank Terbeck <ft@bewatermyfriend.org>
Wed, 30 Nov 2011 21:26:24 +0000 (22:26 +0100)
committerMichael Prokop <mika@grml.org>
Tue, 6 Dec 2011 13:50:49 +0000 (14:50 +0100)
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
doc/grmlzshrc.t2t
etc/zsh/zshrc

index ab7b6e8..f694ad6 100644 (file)
@@ -581,9 +581,6 @@ Example usages:
 Runs a command in $SHELL with profiling enabled (See startup variable
 ZSH_PROFILE_RC above).
 
-: **refunc()**
-Reloads functions given as parameters.
-
 : **salias()**
 Creates an alias whith sudo prepended, if $EUID is not zero. Run "salias -h"
 for details. See also xunfunction() below.
index ea67451..300f624 100644 (file)
@@ -2536,16 +2536,6 @@ _simple_extract()
 compdef _simple_extract simple-extract
 alias se=simple-extract
 
-# TODO: So, this is the third incarnation of this function!?
-#f5# Reload given functions
-refunc() {
-    for func in $argv ; do
-        unfunction $func
-        autoload $func
-    done
-}
-compdef _functions refunc
-
 #f5# Set all ulimit parameters to \kbd{unlimited}
 allulimit() {
     ulimit -c unlimited