From aba64d5a726aba4e7d1554cfcf83a2997253ad9c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 19 Jun 2015 05:05:13 +0300 Subject: [PATCH] .shellrc: simplify TERM handling for tmux --- .shellrc | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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 } -- 2.39.5