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

Instead of your `..` aliases, I have this, which saves some copy-pasting.

    function up() { cd "$(printf '../'%.0s $(seq 1 "${1:-1}"))" && pwd; } #up 4 goes up 4 directories


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

Search: