From d4e410f1fedc408364e2daf0bfc0e6136da7bbfe Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 18 Dec 2020 06:27:54 +0300 Subject: tmux: fix colors --- %HOME%/.tmux.conf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/%HOME%/.tmux.conf b/%HOME%/.tmux.conf index 3f8bf74..268025a 100644 --- a/%HOME%/.tmux.conf +++ b/%HOME%/.tmux.conf @@ -10,6 +10,12 @@ unbind C-b set -g prefix C-j bind -n M-j send-prefix +# The default seems to be "screen" on my machine, and if I ssh to a remote +# system, all the 256 colors might not be supported. Check using this script: +# https://superuser.com/a/285400. I'm eager to see what kinds of trouble it +# will bring me. +set -g default-terminal "screen-256color" + # Why launch a login shell? set -g default-command "${SHELL}" @@ -138,5 +144,5 @@ if-shell 'uname | grep -q -F Linux && which xsel' { # Highlight active window panes/windows, might not work so well depending on # your color scheme. set-window-option -g window-status-current-style bg=red -set-window-option -g window-style bg=#000000 -set-window-option -g window-active-style bg=#181818 +set-window-option -g window-style bg=colour232 +set-window-option -g window-active-style bg=colour234 -- cgit v1.2.3