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

I used to alias .. etc., but then found that Fish shell has helpful commands and behaviours for directory navigation built in:

> Note that the shell will attempt to change directory without requiring cd if the name of a directory is provided (starting with ., / or ~, or ending with /).

> https://fishshell.com/docs/current/cmds/cd.html

So these all work without the cd by default with Fish:

../

../../

~

~/path/to/folder

cdh is also very useful. It shows a history of recent directories with a keyed prompt to jump to a directory.

https://fishshell.com/docs/current/cmds/cdh.html



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

Search: