So at my position we use a shared set of aliases to do builds. Something like...
alias 'build'='cd $BUILD_ROOT; m; cp ...; cp...; deploy; deploy; deploy; cd -'
This is super irritating because the make command takes about 3 minutes and I usually realize I missed something, hit Ctrl-C, and then immediately run build again. This leaves me in a directory I don't care to be in, with a painful path to retype.
What I'd really like is something like...
alias 'betterbuild'='pushd .; build; even-if-the-user-cancelled popd'
Is there a way to do this?
cp ...
supposed to becd ....
?