2
votes
3answers
39 views

Intelligently switch between multiple BASH processes

Say you're in a directory and you want to check something in another directory, so you type bash to spawn a new shell so you can cd and check that thing and then type exit to get out and go back to ...
2
votes
1answer
733 views

how to detect a laptop hibernate/resume(close lid,open) in osx from a bash script

This is a follow on question to how to trap a suspend a resume from a bash script How do you a trap the event that occurs when you close the lid and later reopen it from a bash script?