Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completion on dots
- X-seq: zsh-users 16256
- From: Jesper Nygårds <jesper.nygards@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Completion on dots
- Date: Wed, 17 Aug 2011 16:40:02 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=8F5+BBWpWt6MwsvV8PJaRIbjgrp+7/j+Qqe2BzOcRwA=; b=coST/CXVZYFW3cGx5w4N2AXlYjydS8EGoXHxknxju8bQ+aHex1VCQaYVeitY9sFuhn veh43sHwYi4fq4EMmEDUT7XvLqHqPekmrVWJFJG2NrK1nSaJhYV9fRZV6e7t/fkw5d84 cD4On7PyARQJEueqAH4h2Bs+f/bjy3OpkYXg0=
- 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 have the following in my .zshrc:
alias -g ...='../../'
which of course allows me to write for example "ls ..." to show all
files in the grand-parent directory.
However, it doesn't work with completion: I can't write "ls
.../<TAB>", and have zsh complete on the available files in the
grand-parent directory.
Would it be possible to write such a completion function? And ideally,
for even more dot patterns: "...", "...." etc, to continue up in the
file hierachy?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author