tmux() {
case "$TERM" in
rxvt)
- TMUX_SAVE_TERM="$TERM"
- TERM=rxvt-unicode
+ TERM=rxvt-unicode command tmux "$@"
;;
- esac
-
- command tmux "$@"
- rc=$?
- [ -n "$TMUX_SAVE_TERM" ] && TERM="$TMUX_SAVE_TERM"
- unset TMUX_SAVE_TERM
- return $rc
+ *)
+ command tmux "$@"
+ ;;
+ esac
}