mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
tmux: remove broken settings
This commit is contained in:
parent
6a5991de8b
commit
29fc94db68
34
tmux.conf
34
tmux.conf
|
@ -72,29 +72,6 @@ set-window-option -g automatic-rename
|
||||||
# https://github.com/edkolev/dots/blob/master/tmux.conf
|
# https://github.com/edkolev/dots/blob/master/tmux.conf
|
||||||
# Updates for tmux 1.9's current pane splitting paths.
|
# Updates for tmux 1.9's current pane splitting paths.
|
||||||
|
|
||||||
# from powerline
|
|
||||||
run-shell "tmux set-environment -g TMUX_VERSION_MAJOR $(tmux -V | cut -d' ' -f2 | cut -d'.' -f1 | sed 's/[^0-9]*//g')"
|
|
||||||
run-shell "tmux set-environment -g TMUX_VERSION_MINOR $(tmux -V | cut -d' ' -f2 | cut -d'.' -f2 | sed 's/[^0-9]*//g')"
|
|
||||||
|
|
||||||
# Vi copypaste mode
|
|
||||||
set-window-option -g mode-keys vi
|
|
||||||
if-shell "test '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 4 \)'" 'bind-key -Tcopy-mode-vi v send -X begin-selection; bind-key -Tcopy-mode-vi y send -X copy-selection-and-cancel'
|
|
||||||
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 4\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'bind-key -t vi-copy v begin-selection; bind-key -t vi-copy y copy-selection'
|
|
||||||
|
|
||||||
# status bar
|
|
||||||
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 2\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'set-option -g status-utf8 on'
|
|
||||||
|
|
||||||
# rm mouse mode fail
|
|
||||||
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 1\)' 'set -g mouse off'
|
|
||||||
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 1\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'set -g mode-mouse off'
|
|
||||||
|
|
||||||
# fix pane_current_path on new window and splits
|
|
||||||
# if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind c; bind c new-window -c "#{pane_current_path}"'
|
|
||||||
# if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" "unbind '\"'; bind '\"' split-window -v -c '#{pane_current_path}'"
|
|
||||||
# if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind v; bind v split-window -h -c "#{pane_current_path}"'
|
|
||||||
# if-shell "test '#{$TMUX_VERSION_MAJOR} -gt 1 -o \( #{$TMUX_VERSION_MAJOR} -eq 1 -a #{$TMUX_VERSION_MINOR} -ge 8 \)'" 'unbind %; bind % split-window -h -c "#{pane_current_path}"'
|
|
||||||
|
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
# How to use true colors in vim under tmux? #1246 for 2.6 and higher
|
# How to use true colors in vim under tmux? #1246 for 2.6 and higher
|
||||||
# https://github.com/tmux/tmux/issues/1246:
|
# https://github.com/tmux/tmux/issues/1246:
|
||||||
|
@ -103,17 +80,6 @@ if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 1\) -o #
|
||||||
# 2.5 and lower:
|
# 2.5 and lower:
|
||||||
# set -g default-terminal "screen-256color"
|
# set -g default-terminal "screen-256color"
|
||||||
|
|
||||||
# Doesn't work on iterm2 / mac
|
|
||||||
# if-shell "test '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 6 \)'" 'set -g default-terminal "tmux-256color"'
|
|
||||||
# if-shell "test '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 6 \)'" 'set -ga terminal-overrides ",*256col*:Tc"'
|
|
||||||
|
|
||||||
# Try screen256-color (https://github.com/tmux/tmux/issues/622):
|
|
||||||
if-shell "test '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 6 \)'" 'set -g default-terminal "screen-256color"'
|
|
||||||
if-shell "test '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -ge 6 \)'" 'set -ga terminal-overrides ",screen-256color:Tc"'
|
|
||||||
|
|
||||||
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 6\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'set -g default-terminal "screen-256color"'
|
|
||||||
|
|
||||||
|
|
||||||
# # True color settings, see https://jdhao.github.io/2018/10/19/tmux_nvim_true_color/ for the details.
|
# # True color settings, see https://jdhao.github.io/2018/10/19/tmux_nvim_true_color/ for the details.
|
||||||
set -g default-terminal "xterm-256color"
|
set -g default-terminal "xterm-256color"
|
||||||
# If terminal supports true color, use the following options.
|
# If terminal supports true color, use the following options.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user