.dotfiles/configs/.tmux.conf

51 lines
1.5 KiB
Plaintext
Raw Normal View History

2021-10-11 16:49:55 +02:00
set-option -g default-terminal "screen-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
set-option -g focus-events on
set-option -sg escape-time 10
set -g destroy-unattached
2021-08-23 14:05:39 +02:00
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
bind-key -n C-b set-option -g status #Ctrl+F3 Combo
2021-10-11 16:49:55 +02:00
2021-08-23 14:05:39 +02:00
# split panes using | and -
2021-09-12 16:35:38 +02:00
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
2021-08-23 14:05:39 +02:00
unbind '"'
unbind %
2021-09-12 16:35:38 +02:00
# Scroll slower
bind -Tcopy-mode WheelUpPane send -N1 -X scroll-up
bind -Tcopy-mode WheelDownPane send -N1 -X scroll-down
#Use Neovim style navigation
2021-10-06 15:08:18 +02:00
set -g mode-keys vi
2021-08-23 14:05:39 +02:00
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
2022-03-14 19:21:46 +01:00
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
2021-08-23 14:05:39 +02:00
# Customize status line
2021-10-06 15:08:18 +02:00
# set-option -g status-style bg=default
set-window-option -g status-position top # statusbar position
set -g status-interval 1
set -g window-status-format '#[fg=#777777]#(pwd="#{pane_current_path}"; echo ${pwd####*/})'
set -g window-status-current-format '#[fg=white, bold]#(pwd="#{pane_current_path}"; echo ${pwd####*/})'
set -g status-right-length 120
2021-10-06 15:08:18 +02:00
set -g status-right '#(date +"%H:%M") | #[bold, fg=white]#(whoami)@#(hostname -s) '
set-option -g status-style bg=default
2021-09-06 13:29:42 +02:00
# Add some plugins
set -g @yank_action 'copy-pipe-no-clear'
bind -T copy-mode C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
bind -T copy-mode-vi C-c send -X copy-pipe-no-clear "xsel -i --clipboard"