Hacker News new | ask | show | jobs
by gumby 876 days ago
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)
1 comments

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