Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
completion fails if dir referenced via variable.
- X-seq: zsh-users 18513
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: completion fails if dir referenced via variable.
- Date: Tue, 25 Feb 2014 07:21:12 -0800
- In-reply-to: <CAH+w=7aqdvx52VFv6MCrkUKqt+5tzH665H_X6U1e1SMvNQF1ig@mail.gmail.com>
- 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
- References: <CAHyxEs0RWnm_h1X6C6+VognALdCjZDabBATjUUtSUR58x+nHDw@mail.gmail.com> <140204073937.ZM21329@torch.brasslantern.com> <52F1146D.5020801@eastlink.ca> <140204194650.ZM21787@torch.brasslantern.com> <52F283E8.4050500@eastlink.ca> <CAH+w=7aqdvx52VFv6MCrkUKqt+5tzH665H_X6U1e1SMvNQF1ig@mail.gmail.com>
When I open an xterm it automatically assigns its current directory to a
variable, eg. the current directory in 'pts/1' will always be '$t1'. I
use this shorthand for moving stuff. Say I'm in xterm 'pts/2' and I want
to copy something from the current dir in 'pts/1', I just " cp
$t1/filename .' " Works fine. However completion does not work. Using
that last example, if I type " cp $t1/filen [tab] " what happens is that
" $t1 " expands just fine followed by " filen ". On the line below it
says: " Completing all expansions ", but nothing happens. If I press
[tab] again the expansion of " $t1 " collapses and on the next line it
says: " Completing original " from then on [tab] alternates between
those two states. Can I overcome this? It seems strange since the
variable expands just fine, so completion 'knows' what it's looking for
as if I typed the full path by hand (and if I do, type it by hand,
completion works fine, of course). I'm betting there's a setopt for this.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author