Adithya Chari

Email: contact@adchari.dev

Sourcehut: adchari

LinkedIn: adithyachari

Résumé: Click Here

~/adchari/.tmux.conf/

# tmux configuration to somewhat emulate emacs keybindings

# remap prefix from 'C-b' to 'C-x'
unbind C-b
set-option -g prefix C-x
bind-key C-x send-prefix

# split panes using 3 and 2
bind 3 split-window -h
bind 2 split-window -v
unbind '"'
unbind %

# switch panes using Alt-arrow without prefix
bind Left select-pane -L
bind Right select-pane -R
bind Up select-pane -U
bind Down select-pane -D

# Enable switch session similar than emacs selecting buffer
unbind s
bind b choose-tree -w

# Kill window
bind k confirm kill-window

# Source the conf file
bind r source-file ~/.tmux.conf

# Use C-x 0 to close panel, similar than emacs when closing the splitted window
unbind 0
bind 0 kill-pane

bind -T copy-mode M-w run "tmux save-buffer - | xclip -i -sel clipboard"
bind -T copy-mode C-y run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"