added precmd function for tmux