Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Re; lftp completion



Bart Schaefer wrote:

> On Mar 13,  2:38pm, Oliver Kiddle wrote:
> } Subject: Re; lftp completion
> }
> } Bart wrote:
> } 
> } > local bookmarks=$HOME/.${words[0]:t}/bookmarks
> } 
> } Shouldn't the function be using $service instead of ${words[0]:t}?
> 
> I went back and forth on that one.  Using $service would mean that some
> other command wanted to read ncftp's (or lftp's) bookmarks file, rather
> than having its own with a similar format.  I concluded that wasn't
> likely; but maybe the other way would in fact be better.

How about a compromise: check if $HOME/.${words[0]:t}/bookmarks exists 
and if it doesn't, fall back on $HOME/$service/bookmarks.


Bye
 Sven 'or use a style to allow overriding that' Wischnowsky


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author