.bash_profile vs .bashrc or why does OS X ignore my .bashrc in Terminal.app?
It’s a bit fiddly but it can be done.
Cmd+m to the item you want to un-minimise, then while still holding cmd, press Option. Release Cmd and then finally release Option.
Cmd+m to minimise a window in OS X