tmux_ssh/ssh.conf
Uwe Werler 4bc7c00f18 style
2020-07-27 01:00:51 +00:00

87 lines
3.1 KiB
Plaintext

set -g prefix C-g
# needed for e.g. mutt
bind C-g send-prefix
#set -g set-titles on
set -g status-position top
set -g status-keys vi
set -g mode-keys vi
set -g base-index 1
set -g pane-base-index 1
set -g focus-events on
#set -g allow-rename off
#set-option -g allow-rename off
setw -g automatic-rename off
set -g automatic-rename off
setw -g allow-rename off
set -g allow-rename off
set history-file ~/.tmux_SSH_history
set -g history-limit 100000
set -s set-clipboard on
set -g display-time 3000
set -g display-panes-time 3000
#set -g pane-border-status top
setw -g window-status-current-style bg=colour240,fg=colour250
setw -g window-status-separator "|"
set -g status-bg colour235
set -g status-fg colour245
setw -g pane-border-style fg=colour235
setw -g pane-active-border-style fg=colour240
set -g window-status-format " #I #{p15:pane_title} #{p2:window_flags}"
setw -g automatic-rename-format " #I #{p15:pane_title} #{p2:window_flags}"
set -g window-status-current-format " #I #{p15:pane_title} #{p2:window_flags}"
#set -g window-status-format " #I #{p15:pane_title} #{p2:?window_flags, #{window_flags}, }"
#setw -g automatic-rename-format " #I #{p15:pane_title} #{p2:?window_flags, #{window_flags}, }"
#set -g window-status-current-format " #I #{p15:pane_title} #{p2:?window_flags, #{window_flags}, }"
#set -g window-status-format " #I #{=+15:pane_title} #{=-2:?window_flags, #{window_flags}, }"
#setw -g automatic-rename-format " #I #{=+15:pane_title} #{=-2:?window_flags, #{window_flags}, }"
#set -g window-status-current-format " #I #{=+15:pane_title} #{=-2:?window_flags, #{window_flags}, }"
set -g pane-border-format " #P: #{s/ //:pane_title} "
set -g renumber-windows on
set -g status-right-length 0
##############################################################
# I prefer not to have a status for my tabbed term
set -g status-right ""
set -g status-right-length 0
set -g status-left-length 0
set -g status-left ""
# some settings for "navigation"
bind -n C-PageUp copy-mode
unbind -n C-Left
unbind -n C-Right
bind -n C-Left select-window -t :-
bind -n C-Right select-window -t :+
# I prefer a tiled layout and easy joining of current active pane via windows'
# index
bind F1 join-pane -s 1.\; select-layout tiled
bind F2 join-pane -s 2.\; select-layout tiled
bind F3 join-pane -s 3.\; select-layout tiled
bind F4 join-pane -s 4.\; select-layout tiled
bind F5 join-pane -s 5.\; select-layout tiled
bind F6 join-pane -s 6.\; select-layout tiled
bind F7 join-pane -s 7.\; select-layout tiled
bind F8 join-pane -s 8.\; select-layout tiled
bind F9 join-pane -s 9.\; select-layout tiled
bind -n S-Down select-pane -D
bind -n S-Up select-pane -U
bind -n S-Left select-pane -L
bind -n S-Right select-pane -R
bind-key -n C-S-Left "swap-window -t -1; select-window -t -1"
bind-key -n C-S-Right "swap-window -t +1; select-window -t +1"
bind p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
bind C-v run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'