From: Frank Terbeck Date: Wed, 30 Nov 2011 21:26:24 +0000 (+0100) Subject: zshrc: Remove `refunc' as `freload' does the same thing X-Git-Tag: v0.5.0~5 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=ac404c119ce814156c5744f83fbfc3dbd6738f92 zshrc: Remove `refunc' as `freload' does the same thing Signed-off-by: Frank Terbeck --- diff --git a/doc/grmlzshrc.t2t b/doc/grmlzshrc.t2t index ab7b6e8..f694ad6 100644 --- a/doc/grmlzshrc.t2t +++ b/doc/grmlzshrc.t2t @@ -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. diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index ea67451..300f624 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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