added postcmd and precmd for tmux