Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    I'd move the cdpath suggestion into a TL;DR line at the top of the post :)
    – chepner
    Commented Dec 14, 2015 at 21:14
  • Also, I think you're missing setopt AUTOCD (for zsh) and shopt -s autocd (for bash) to complete the idea of using a directory name as an alias for changing to that directory.
    – chepner
    Commented Dec 14, 2015 at 21:16
  • @chepner Duh, thanks. After all these years on autocd, I tend to forget that it's one of the things that made me switch to zsh back when bash didn't have it. Commented Dec 14, 2015 at 22:16
  • sorry for the accepted answer arriving late
    – le-doude
    Commented Feb 2, 2020 at 23:45