mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-01-28 14:09:54 -06:00
59 lines
1.6 KiB
Bash
59 lines
1.6 KiB
Bash
set -g prefix C-a
|
|
unbind C-b
|
|
|
|
set -g history-file ~/.tmux_history
|
|
|
|
set -s escape-time 1
|
|
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|
|
|
|
bind r source-file ~/.tmux.conf \; display "Reloaded!"
|
|
bind -r '`' clear-history \; display "History Cleared!"
|
|
|
|
bind C-a send-prefix
|
|
|
|
bind | split-window -h
|
|
bind - split-window -v
|
|
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
bind -r C-h select-window -t :-
|
|
bind -r C-l select-window -t :+
|
|
|
|
bind H resize-pane -L 5
|
|
bind J resize-pane -D 5
|
|
bind K resize-pane -U 5
|
|
bind L resize-pane -R 5
|
|
|
|
setw -g mouse off
|
|
|
|
# set -g default-terminal "xterm-256:color"
|
|
# set -g default-terminal "${TERM}"
|
|
set -g default-terminal "tmux-256color"
|
|
set -g history-limit 15000
|
|
|
|
set -g window-status-style dim
|
|
set -g window-status-current-style bright
|
|
|
|
setw -g mode-keys vi
|
|
|
|
set -g status-right '#(~/dotfiles/bin/tmux_battery_charge_indicator.sh) #[bg=white,fg=colour240] %H:%M #[bg=colour240,fg=white] %Y-%m-%d '
|
|
|
|
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
|
|
set-environment -g 'SSH_AUTH_SOCK' ~/.ssh/ssh_auth_sock
|
|
|
|
# set -as terminal-overrides ',xterm-256color:RGB'
|
|
set -as terminal-features ',tmux-256color:RGB'
|
|
set-option -sa terminal-overrides ',tmux-256color:RGB'
|
|
|
|
# Undercurl
|
|
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
|
|
# set -gas terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
|
|
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
|
|
|
|
set-option -g focus-events on
|