From: Oleg Broytman Date: Fri, 19 Jun 2015 02:05:13 +0000 (+0300) Subject: .shellrc: simplify TERM handling for tmux X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=aba64d5a726aba4e7d1554cfcf83a2997253ad9c;p=dotfiles.git .shellrc: simplify TERM handling for tmux --- diff --git a/.shellrc b/.shellrc index d2007fa..67f9b76 100644 --- a/.shellrc +++ b/.shellrc @@ -196,15 +196,11 @@ mc() { 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 }