refactory the tmux/tmux.sh to functions