zsh-users
 help / color / mirror / code / Atom feed
* Directory stack completion system
@ 2015-07-19 11:26 rooom
  2015-07-19 17:16 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: rooom @ 2015-07-19 11:26 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 1181 bytes --]

Hi,
I'm playing with completion system and directory stack, and I figured out that there is some inconsistency in my set up, namely "dirs -v" shows:
0    ~
1    /usr/src
2    ~/tmp
3    ~/software
whereas "cd -<TAB>":
0 --  /home/john
1 --  /usr/src
2 --  /home/john/tmp
3 --  /home/john/software
I like "dirs" behaviour more, i.e. abbreviated form of directory names (with tilde), so how can I set up completion system for "cd -" to show "~"?
Part of my current setup from .zshrc which may be related to this issue:
setopt AUTO_PUSHD                                        # cd pushes the old directory onto the directory stack
setopt PUSHD_MINUS                                      # exchange the meanings of '+' and '-'
setopt CDABLE_VARS                                       # to allow 'cd -2/tmp'
autoload -U compinit && compinit                     # load + start module
zstyle ':completion:*:cd:*' tag-order '! users'  # don't complete users' $HOME in cd
Thanks in advance for any hints,
r

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-19 17:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-19 11:26 Directory stack completion system rooom
2015-07-19 17:16 ` Bart Schaefer
2015-07-19 17:38   ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).