Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PWS :reload
- X-seq: zsh-users 8820
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: PWS :reload
- Date: Thu, 12 May 2005 17:00:26 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <lph681tkqplffuk8fh6vrope91gbb053mf@xxxxxxx> <21433.1115902923@xxxxxxx> <h8o681t5vaee6101u5u59tcn9slujg2j5n@xxxxxxx> <david@xxxxxxxxxx> of "Thu, 12 May 2005 14:59:38 BST." <h8o681t5vaee6101u5u59tcn9slujg2j5n@xxxxxxx> <11870.1115909308@xxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
On Thu, 12 May 2005 15:48:28 +0100, wrote:
>zzapper wrote:
>> I never remember that I need to say autoload the first time of use that's all
>> .
>
>You might want to ignore the result of unfunction.
>
>reload() {
>while (( $# )); do
> unfunction $1 2>/dev/null
> autoload $1
> shift
>done
>}
>
Can I have a warning that the function wasn't already loaded?
--
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