dotfiles/tmux/.config/tmux/tmux.conf

43 lines
976 B
Plaintext
Raw Normal View History

2022-10-10 04:44:00 +00:00
# remap prefix from 'C-b' to 'C-a'
unbind C-b
2022-10-11 05:18:04 +00:00
# set-option -g prefix C-a
# bind-key C-a send-prefix
set-option -g prefix '`'
bind-key '`' send-prefix
2022-10-10 04:44:00 +00:00
2022-11-12 21:19:55 +00:00
# mouse scrolling
setw -g mouse on
2022-10-10 04:44:00 +00:00
# 0 is too far from Ctrl-a.
set -g base-index 1
# 1-indexed panes to match the windows.
setw -g pane-base-index 1
# Look nice.
set -g default-terminal screen-256color
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
2022-11-12 21:19:55 +00:00
bind r source-file ~/.config/tmux/tmux.conf\; display ' Reloaded tmux config.'
2022-10-10 04:44:00 +00:00
# switch panes using Alt-arrow without prefix
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
# Shift + arrow key to move between windows.
bind-key -n S-Left previous-window
bind-key -n S-Right next-window
2022-10-11 05:18:04 +00:00
2022-11-12 21:19:55 +00:00
# Faster Esc
set-option -sg escape-time 10
2022-10-11 05:18:04 +00:00
source ~/.config/tmux/statusline.conf