Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think I want it for the file shortcuts alone. Those will save me tons of keystrokes.


If you use bash or zsh, you might want to check out CDPATH. From the bash man page:

  CDPATH The search path for the cd command. This is a colon-separated
  list of directories in which the shell looks for destination
  directories specified by the cd command. A sample value is ".:~:/usr".


Beware: CDPATH can wreck some eye-gouging pain when compiling ruby gem extensions.

And by eye-gouging pain, I mean that it takes you an extended period of time to determine why you can't bundle env-js when everyone else seems to have no problem. A simple export CDPATH="" resolves the issue with no problem.


I think what he means is the $e1, $e2, ... shell variable shortcut. Not the `cd` to some directory.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: