dotfiles/.tmux.conf

65 lines
1.9 KiB
Text
Raw Normal View History

2016-10-10 16:23:16 +02:00
set -g prefix ^o
set -g base-index 1
set -g display-panes-time 3000
set -s escape-time 10
2020-09-27 13:56:54 +02:00
set -g status on
2018-01-12 14:04:53 +01:00
set -g status-interval 30
2020-09-27 13:56:54 +02:00
setw -g alternate-screen on
setw -g aggressive-resize on
setw -g automatic-rename off
setw -g mode-keys vi
set-option -g mouse on
2016-10-10 16:23:16 +02:00
# clipboard
set -g set-clipboard on
bind-key ] paste-buffer -p
2020-09-27 13:56:54 +02:00
set -g update-environment "XAUTHORITY DISPLAY WINDOWID SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION"
set -g default-command zsh
2016-10-10 16:23:16 +02:00
set -g history-limit 50000
2020-09-27 13:56:54 +02:00
#set -g default-terminal "tmux-256color"
#set -ga terminal-overrides ',*:Tc' # this is for 256 color
#set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' # this is for the cursor shape
2016-10-10 16:23:16 +02:00
# Key bindings
2018-01-12 14:04:53 +01:00
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
2020-09-05 11:16:23 +02:00
# bind -n M-Tab last-pane
2016-10-10 16:23:16 +02:00
bind -n M-1 select-window -t 1
bind -n M-2 select-window -t 2
bind -n M-3 select-window -t 3
bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5
bind -n M-6 select-window -t 6
bind -n M-7 select-window -t 7
bind -n M-8 select-window -t 8
bind -n M-9 select-window -t 9
bind -n M-0 select-window -t 10
2019-01-01 19:48:52 +01:00
bind -n M-m send-keys -t 9 q C-u "clear; tmux clear-history -t 9" C-m C-p C-p C-p C-m
2016-10-10 16:23:16 +02:00
bind -n M-` last-window
bind C-o last-window
2018-01-12 14:04:53 +01:00
bind r source-file ~/.tmux.conf
2016-10-10 16:23:16 +02:00
bind -n C-Right next-window
bind -n C-Left previous-window
bind C-s set-option -g status
bind K confirm kill-server
2018-01-03 08:47:21 +01:00
bind C-k clear-history
2019-07-04 17:15:47 +02:00
bind -n C-l send-keys C-l \; clear-history
2020-04-22 08:30:34 +02:00
bind-key -T copy-mode-vi WheelUpPane select-pane \; send-keys -X -N 1 scroll-up
bind-key -T copy-mode-vi WheelDownPane select-pane \; send-keys -X -N 1 scroll-down
2020-09-27 16:38:35 +02:00
setw -g window-status-format ""
setw -g window-status-separator ""
set -g status-justify left
2020-09-27 16:51:11 +02:00
set -g status-left ""
set -g status-format "#I:#T"
2020-09-27 16:38:35 +02:00
set -g status-right ""
set -g set-titles on
set -g set-titles-string "#H:#T"
set -g status-style "fg=#EFEBE9,bg=#546E7A"
2016-10-10 16:23:16 +02:00
# vim:set ft=tmux: