EivindArvesen / prm

A minimal project manager for the terminal.
BSD 3-Clause "New" or "Revised" License
443 stars 18 forks source link

Preserve `$PS1` and return to the original directory #7

Closed lalinsky closed 9 years ago

lalinsky commented 9 years ago

The current version doesn't preserve $PS1 exactly (removes leading/trailing whitespace) and always ends up in ~/.prm.

Before:

lukas@bubbles:~$ prm start test
Starting project test
[test] lukas@bubbles:/tmp$ prm stop
Stopping project test
lukas@bubbles:~/.prm$pwd

After:

lukas@bubbles:~$ prm start test
Starting project test
[test] lukas@bubbles:/tmp$ prm stop
Stopping project test
lukas@bubbles:~$ pwd
EivindArvesen commented 9 years ago

Just noticed this myself. Thanks!