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

If you’re doing this for history value put it in a subshell so it doesn’t change your working directory in a confusing way:

    (cd ~/x/y/z && my-command)


Neat idea, definitely going to use this! Thanks for sharing




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

Search: