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.

@taaz@biglemmowski.win
link
fedilink
English
141Y

And - to go back to where you came from.

Wait what??? That’s amazing! I’m learning so much.

@taaz@biglemmowski.win
link
fedilink
English
2
edit-2
1Y

One more, install and enable fzf in your .zshrc.

It makes ctrl+R (reverse history search) a lot better and cooler

MaggiWuerze
link
fedilink
11Y

Without cd in front?

@taaz@biglemmowski.win
link
fedilink
English
41Y

in zsh just the - is enough for me though it might be a feature of oh-my-zsh config

This is my favorite cd feature by a large margin.

Create a post

All things programming and coding related. Subcommunity of Technology.


This community’s icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

  • 1 user online
  • 2 users / day
  • 2 users / week
  • 8 users / month
  • 98 users / 6 months
  • 1 subscriber
  • 302 Posts
  • 2.15K Comments
  • Modlog