Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ".."+Tab (and "."+Tab) does not add "/" on MacOS (Sonoma)



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