when closing a window, automatically reindex others
update the name of the current tmux window when entering a git repo