Added support for tmux

This pull request allow support of tmux. Code is from here:
https://coderwall.com/p/if9mda