pub-solar-os/profiles/develop/tmux/tmux.conf
2019-12-17 17:31:14 -07:00

58 lines
1.6 KiB
Plaintext

# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# autmatic window name
setw -g automatic-rename on
# only update status line once per minute
set -g status-interval 60
# Enable focus events
set -g focus-events on
# truecolor in xterm
set -ga terminal-overrides ",*col*:Tc"
# Start a non login shell
set -g default-command "${SHELL}"
# pane movement
# Grab pane from the target window & joins to current,
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
# does reverse.
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
# Key binds
bind -n ^_ send-keys 'C-l'
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
bind-key C-a last-window
bind-key | split-window -h
bind-key - split-window -v
bind-key _ split-window -v -p 38
bind-key \ split-window -h -p 38
bind-key b break-pane -d
bind-key x kill-pane
bind-key X kill-window
bind-key q confirm-before kill-session
bind-key Q confirm-before kill-server
bind-key , previous-window # <
bind-key . next-window # >
bind-key -r < swap-window -t :-
bind-key -r > swap-window -t :+
bind-key n command-prompt 'rename-window %%'
bind-key N command-prompt 'rename-session %%'
bind-key Escape copy-mode -u
bind-key Up copy-mode -u
bind-key r source-file ~/.tmux.conf
bind-key R refresh-client
bind-key S set-option status
# Resize panes with alt-jkhl
bind-key -n C-M-j resize-pane -D
bind-key -n C-M-k resize-pane -U
bind-key -n C-M-h resize-pane -L
bind-key -n C-M-l resize-pane -R
bind -T copy-mode-vi 'v' send-keys -X begin-selection