Reorganize functions and variable definitions
Dynamically set tmux terminal title