взято отсюда: https://github.com/jlevy/the-art-of-command-line
In Bash scripts, subshells (written with parentheses) are convenient ways to group commands. A common example is to temporarily move to a different working directory, e.g.
# do something in current dir
(cd /some/other/dir && other-command)
# continue in original dir
Возможное решение:
в ~/.bashrc можно добавить alias:
alias my_command='(cd /path/to/dir && ./my_command)'