fix flawed implementation

fix:
* tmux options
* history buffer
* bash history
* save acts on foreground process, instead of starting process
* convert indenting tabs to spaces