summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2019-10-27 17:40:22 +0000
committerbrian m. carlson <sandals@crustytoothpaste.net>2019-10-27 17:40:22 +0000
commit3807264bffd07845f2b14844eae66ff2dd5aa711 (patch)
tree9750e5a0b693173b104266d28317b6045a3b4496
parentbfad3b322a210fdef53c03970ae4f264270e2811 (diff)
zshrc: switch back to using screen* for TERM
The tmux-256color terminal type is not present on some older systems, like Debian jessie. Trying to use it there makes ncurses-using programs think the terminal is dumb, preventing most things from working. Since we know the screen-256color terminal types work everywhere, use those instead. In addition, switch the terminal type back to screen-256color if we get a tmux-256color terminal type. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
-rw-r--r--zsh/zshrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index e034736..5a2b31a 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -156,9 +156,9 @@ set_sane_term () {
set_if_has_term xterm-256color;;
xterm:*konsole)
set_if_has_term konsole-256color;;
- screen*:*tmux*)
+ screen*:*tmux*|tmux*:*tmux*)
is_ssh_session && EDITOR=$(bmc_editor console)
- set_if_has_term tmux-256color screen-256color;;
+ set_if_has_term screen-256color;;
screen*:*)
EDITOR=$(bmc_editor console)
set_if_has_term screen-256color;;