diff --git a/tmux/.config/tmux/plugins/macos-color-workaround b/tmux/.config/tmux/plugins/macos-color-workaround new file mode 100755 index 0000000..3802b8a --- /dev/null +++ b/tmux/.config/tmux/plugins/macos-color-workaround @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +if [ "$(uname -s)" == "Darwin" ]; then + exit 0 +fi + +tmux set default-terminal "tmux-256color" +tmux set terminal-overrides ",xterm-256color:Tc" diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index acac715..6f12183 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -29,9 +29,7 @@ set-option -g mouse on ################################################################################ # Colors ################################################################################ -set -g default-terminal "tmux-256color" -set -g terminal-overrides ",xterm-256color:Tc" - +run $XDG_CONFIG_HOME/tmux/plugins/macos-color-workaround set -g status-fg white set -g status-bg black