Files
.dotfiles/tmux/tmux.conf
Josue Zamudio Estrada 04696d3f0b add old files
2024-03-02 05:13:28 -08:00

56 lines
1.4 KiB
Bash

set-option -sa terminal-overrides ",xterm*:Tc"
set -g default-terminal "xterm-256color"
bind-key r source-file ~/.config/tmux/tmux.conf \; display "Reloaded!"
# remap prefix
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# set vi-mode
set-window-option -g mode-keys vi
# keybindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# VIM like pane moving
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Remap arrow keys (normally pane switch) to be resize,
# which will now be double-mapped with ctrl+arrow
bind -r Up resize-pane -U
bind -r Down resize-pane -D
bind -r Left resize-pane -L
bind -r Right resize-pane -R
set -g renumber-windows on
set-option -g allow-rename off
set-option -g history-limit 5000
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'