3 ms·
You should instead pushd /my/path && command && popd Both in bash AND in fish!
by lytedev 4y ago
You should instead
pushd /my/path && command && popd
Both in bash AND in fish!
- CJefferson 4y agothe problem with that is I ended up in the wrong directory if I press ctrl+c, or in the exact examples you give, if command fails.