Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
tab completion in an alias
- X-seq: zsh-users 14884
- From: John Magolske <listmail@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: tab completion in an alias
- Date: Tue, 23 Feb 2010 21:21:36 -0800
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I was impressed to read in the recent post on dirs & popd how
cd -<tab>
allows one to tabcomplete the directory stack & scroll down through it
with the <down> key. I'd like to wrap this in an alias that includes
the <tab>, something like (and I know this doesn't work):
alias d='cd - '
So that I could type d, then the enter key, and be presented with the
directory stack as a menu to scroll down through. Is there some way to
accomplish this?
Regards,
John
--
John Magolske
http://B79.net/contact
Messages sorted by:
Reverse Date,
Date,
Thread,
Author