add a precommand function to get tmux commands result