dotfiles/tmux/.config/tmux/tmux.conf
2023-07-27 23:53:23 -04:00

46 lines
1.2 KiB
Bash

bind-key r source-file ~/.config/tmux/tmux.conf \; display-message " ✱ tmux.conf is reloaded"
set -g default-terminal "tmux-256color"
set -sa terminal-overrides ",xterm-256color:RGB"
# for muxception
bind-key b send-prefix
set -g automatic-rename off
set -g renumber-windows on
set -g history-limit 100000
set-option -sg escape-time 10
set-option -g base-index 1
set-window-option -g monitor-activity off
set-window-option -g pane-base-index 1
bind-key C-b last-window
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10
# status bar stuff
set -g status on
set -g status-left '#H '
set-option -g status-right '%Y-%m-%d @ %k:%M'
# be more like vim
set-window-option -g mode-keys vi
unbind c; bind c new-window -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
bind h select-pane -L # left pane
bind j select-pane -D # bottom pane
bind k select-pane -U # top pane
bind l select-pane -R # right pane
# move windows
bind H swap-window -d -t -1
bind L swap-window -d -t +1
# neovim
set-option -g focus-events on