refactoring tmux and bash