tmux: more distinct ssh colors + mode-mouse in tmux <=2.0

This commit is contained in:
Henrik Lissner 2015-12-22 04:24:30 -05:00
parent 7e4cb772c4
commit 05171c04bb

View file

@ -9,7 +9,7 @@ if (( $(echo "$TMUX_VERSION >= 2.1" | bc) )); then
# fix mouse scrolling: enter copy mode on scroll-up, exits it when scrolled to bottom # fix mouse scrolling: enter copy mode on scroll-up, exits it when scrolled to bottom
tmux bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'" tmux bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
else else
tmux setw -g mode-mouse tmux setw -g mode-mouse on
tmux set -g mouse-resize-pane on tmux set -g mouse-resize-pane on
tmux set -g mouse-select-pane on tmux set -g mouse-select-pane on
tmux set -g mouse-select-window on tmux set -g mouse-select-window on
@ -50,7 +50,13 @@ then
tmux set -g status-bg colour237 tmux set -g status-bg colour237
tmux set -g status-fg white tmux set -g status-fg white
tmux set -g pane-active-border-fg yellow
tmux set -g pane-border-fg colour238
else else
tmux set -g status-bg yellow tmux set -g status-bg yellow
tmux set -g status-fg black tmux set -g status-fg black
tmux set -g pane-active-border-fg blue
tmux set -g pane-border-fg colour237
fi fi