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

Re: filename completion question...



John S Cooper writes:
> $ export LD_LIBRARY_PATH=~/sdtm<TAB>	# fails

Change the completion rule for export. Here's mine:

compctl -v -S '=' -x 'N[1,@] p[1,-1]' -k hosts - 'N[1,=] p[1,-1]' -f -- export

(It can be improved. For instance, after DISPLAY=, it should do a host
completion...)

-- 
Vincent Lefevre, vlefevre@xxxxxxxxxxx | Acorn RiscPC600, 20+1MB RAM, Eagle M2
http://www.ens-lyon.fr/~vlefevre      | Apple CD-300, SyQuest 270MB
PhD in Computer Science, 1st year     | Atari Falcon030, 4MB RAM
------------------------------------------------------------------------------



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