Auto-update tmux status bar with active pane pwd

This worked for me with tmux 2.5:

export PS1=$PS1'$( [ -n $TMUX ] && tmux rename-window $(basename $PWD))'