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

There's no need to type "cd", just the folder name and hit up until you get to the right command.


That's not default behavior in most shells (e.g., `autocd` in Zsh, and, for the record, that's also not default up arrow behavior in Bash or Zsh [it is in Fish]).

But my question is specifically about relative vs. absolute paths when recalling directory traversal from history. I'm still struggling to follow how you'd use Zsh history as a zoxide replacement without always using absolute paths.




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

Search: