Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Re; lftp completion
- X-seq: zsh-workers 13642
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Re; lftp completion
- Date: Thu, 15 Mar 2001 18:00:29 +0000
- In-reply-to: <200103140801.JAA11230@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200103140801.JAA11230@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
} Sven 'or use a style to allow overriding that' Wischnowsky
Is this the sort of thing you mean? (Not committed yet.) It's been so
long since I added a style that I've forgetten all the details.
_ncftp () {
local bookmarks
zstyle -s \*:$service bookmarks-file bookmarks ||
bookmarks=$HOME/.$service/bookmarks
if [[ -f $bookmarks ]]
then
bookmarks=(${"${(f)$(<$bookmarks)}"%%[[:space:],]*})
[[ $service = ncftp ]] && shift 2 bookmarks
_wanted bookmarks expl bookmark compadd -a bookmarks && return 0
fi
_hosts
}
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author