I accidentally discovered that both “cd …” and “…” work, and moreover, I can add more dots to go back further! I’m using zsh on iTerm2 on macOS. I’m pretty sure this isn’t a cd feature. Is this specific to zsh or iTerm2? Are there other cool features I just never knew existed??

I’m so excited about an extra dot right now.

  • catastrophicbluesOP
    link
    fedilink
    arrow-up
    9
    ·
    1 year ago

    Really? Doesn’t seem to work when I use bash:

    bash-3.2$ cd a/b/c/d/e
    bash-3.2$ ...
    bash: ...: command not found
    bash-3.2$ cd ...
    bash: cd: ...: No such file or directory