Add the following to the end of your bash.rc file
echo "Returning to your last pwd: `cat ~/.lastdir`"
cd `cat ~/.lastdir`
save_pwd() { echo `pwd` > ~/.lastdir; }
trap save_pwd EXIT| { | |
| "$help": "https://aka.ms/terminal-documentation", | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "actions": | |
| [ | |
| { | |
| "command": { "action": "sendInput", "input": "\u0000" }, | |
| "id": "User.noOp" | |
| } | |
| ], |
Add the following to the end of your bash.rc file
echo "Returning to your last pwd: `cat ~/.lastdir`"
cd `cat ~/.lastdir`
save_pwd() { echo `pwd` > ~/.lastdir; }
trap save_pwd EXITI hereby claim:
To claim this, I am signing this object: