wrapped tmux initialization logic into a function