Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PWS :reload
- X-seq: zsh-users 8825
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: PWS :reload
- Date: Thu, 12 May 2005 18:26:51 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <lph681tkqplffuk8fh6vrope91gbb053mf@xxxxxxx> <21433.1115902923@xxxxxxx> <h8o681t5vaee6101u5u59tcn9slujg2j5n@xxxxxxx> <david@xxxxxxxxxx> <11870.1115909308@xxxxxxx> <dbv6815oor3bc2a9cjpea2n16tkoudcor2@xxxxxxx> <1050512170551.ZM17404@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Thu, 12 May 2005 17:05:51 +0000, Bart wrote:
>
>We're venturing into the realm of "you should be able to do this yourself."
Richtig aber, as reload is I believe of general interest I though this way we'd get the best
version!
function reload() {
# reload your changed autoloaded function(s)
if (( $# == 0 ));
then
print "Reload what?" >&2
return 1
fi
while (( $# )); do
unfunction $1 2>/dev/null || print -u2 "$1 loading for the first time"
autoload $1
shift
done
}
--
zzapper
vim -c ":%s%s*%Cyrnfr)fcbafbe[Oenz(Zbbyranne%|:%s)[[()])-)Ig|norm Vg?"
http://www.rayninfo.co.uk/tips/ vim, zsh & success tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author