Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completion of ~ to include dirstack?
- X-seq: zsh-users 11938
- From: "Boyd Adamson" <boyd-adamson@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Completion of ~ to include dirstack?
- Date: Sun, 7 Oct 2007 13:23:39 +1000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=bAda3w943PaS+TdK/ctyMjV3lzHpkCFV+GkSs+lEBoU=; b=d9yiMLfWiu0HNU821ubCcnPbnlcLRHHF5zJaU90O9eSA4zkheM+Bwngc4qiib+8fGq6+uyP9CIEmSQDqCtAudVZ4byc1snUxtfP8kuGuP81zDyEKOnxVe3kE0Hn6TmuY6hoOHBQe+jjahQ+wGJjZlTY0sqLRc+v9ocgifMsGPL4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=UizDKWk1lmmU0FTrG0yF4YyThPNzxS9tbTrLJDAcnBivIR6r3RQhLZCISDFOa0xwO9aAnk0S7mDbi3f7khaGqaLKCoE0qLAZ9xnkt+WECk2u94ljLq+zxvwbYL3Zun1TCSI7hekJiLqvsBBdu5/hUI+F3Aw1lXZXlYlxTf5Cw8k=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: boyd.adamson@xxxxxxxxx
I use the following options:
setopt auto_pushd pushd_ignore_dups
This allows me to do
% dirs -v
0 /opt
1 /export/home
2 /usr
3 ~
% cd ~1
% pwd
/usr
That's great.
I can also change to a dir with cd ~-2 (second from the end)
Now, I have other options set (like verbose menuselection) set, and
completion works on this:
% cd ~-<tab>
directory stack
0 -- /export/home/boyd
1 -- /export/home
2 -- /opt
But I get the list in *reverse* order. What I'd really like is this completion:
% cd ~<tab>
user
adm boyd fred listen noaccess nobody4 root
student uucp
bin daemon gdm lp nobody nuucp smmsp
sys webservd
to include a section with the directory stack.
I have a feeling that this is a one-liner, but I've always found the
zstyle system a bit bewildering.
Can this be done? And if so, is there a general place to get this kind
of info (apart from this list :) )
Boyd
Messages sorted by:
Reverse Date,
Date,
Thread,
Author