mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-05 22:49:37 +00:00
54 lines
1.0 KiB
Bash
54 lines
1.0 KiB
Bash
# ~/.config/tmux/tmux.conf, or .dotfiles/config/tmux/tmux.conf
|
|
#
|
|
# Contains configuration from the follwing sources:
|
|
# - https://tmuxguide.readthedocs.io/en/latest/tmux/tmux.html
|
|
# -
|
|
|
|
# unbind default prefix and set it to ctrl-a
|
|
unbind C-b
|
|
set -g prefix C-a
|
|
bind C-a send-prefix
|
|
|
|
# make delay shorter
|
|
set -sg escape-time 0
|
|
|
|
|
|
|
|
#### key bindings ####
|
|
|
|
# reload config file
|
|
bind r source-file ~/.dotfiles/config/tmux/tmux.conf \; display "tmux.conf reloaded!"
|
|
|
|
# quickly open a new window
|
|
bind N new-window
|
|
|
|
# synchronize all panes in a window
|
|
bind y setw synchronize-panes
|
|
|
|
# pane movement shortcuts (same as vim)
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
# enable mouse support for switching panes/windows
|
|
#set -g mouse-utf8 on
|
|
#set -g mouse on
|
|
|
|
#### copy mode : vim ####
|
|
|
|
# set vi mode for copy mode
|
|
setw -g mode-keys vi
|
|
|
|
# copy mode using 'Esc'
|
|
unbind [
|
|
bind Escape copy-mode
|
|
|
|
# start selection with 'space' and copy using 'y'
|
|
#bind -t vi-copy 'y' copy-selection
|
|
|
|
# paste using 'p'
|
|
unbind p
|
|
bind p paste-buffer
|
|
|