Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ".."+Tab (and "."+Tab) does not add "/" on MacOS (Sonoma)
- X-seq: zsh-users 30050
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Philippe Altherr <philippe.altherr@xxxxxxxxx>
- Cc: Zsh-Users List <zsh-users@xxxxxxx>
- Subject: Re: ".."+Tab (and "."+Tab) does not add "/" on MacOS (Sonoma)
- Date: Sat, 3 Aug 2024 19:58:04 -0700
- Archived-at: <https://zsh.org/users/30050>
- In-reply-to: <CAGdYchuQHatU3XBjhUeAGFuLwaL5LzvY1qB8rz17u5fjYWR9=g@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAGdYchs5bXMrXGcrBBkYVz5=rr0-Yz4yHz6kmp6wbrbuxQnmZw@mail.gmail.com> <CAH+w=7ab381Cc-ENw0MFXsdEB0Phua7Sp2e4pwyfnCjyk9qAVg@mail.gmail.com> <CAGdYchsX1t5WG9gyq3XTmyQaJjuH_75GjmOe9zNoHF+wrz+Uvg@mail.gmail.com> <CAH+w=7ZLDC7P5WMXtH-HNJrnbf06t91mhEg92MTDN=WjfJpaMw@mail.gmail.com> <CAGdYchuQHatU3XBjhUeAGFuLwaL5LzvY1qB8rz17u5fjYWR9=g@mail.gmail.com>
On Fri, Aug 2, 2024 at 4:42 AM Philippe Altherr
<philippe.altherr@xxxxxxxxx> wrote:
>
> What I need is to get rid of the "[[ -o autocd ]]" condition. I achieved it by adding the following line to my .zshrc:
>
>> autoload -z +X _autocd && eval ${"$(which _autocd)"//"[[ -o autocd ]]"/true};
It's probably more robust to do (after "compinit"):
zstyle ':completion:*' special-dirs true
compdef '_alternative \
commands:command:_command_names \
directories:directory:_cd' \
-command-
Messages sorted by:
Reverse Date,
Date,
Thread,
Author