juanshot-dotenvs/.tmux.conf

57 lines
1.4 KiB
Plaintext
Raw Normal View History

2024-08-25 10:10:35 +00:00
unbind C-b
set -g prefix C-Space
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
# v and h are not bound by default, but we never know in the next versions...
unbind v
unbind h
unbind % # Split vertically
unbind '"' # Split horizontally
bind v split-window -h -c "#{pane_current_path}"
bind h split-window -v -c "#{pane_current_path}"
# change pane navigation to Vim-believer mode
bind -n C-h select-pane -L
bind -n C-j select-pane -D
bind -n C-k select-pane -U
bind -n C-l select-pane -R
set -g history-limit 100000
unbind n #DEFAULT KEY: Move to next window
unbind w #DEFAULT KEY: change current window interactively
bind n command-prompt "rename-window '%%'"
bind w new-window -c "#{pane_current_path}"
# Make window and pane numbers start from 1 instead of 0
set -g base-index 1
set-window-option -g pane-base-index 1
# Move to next/previous window with Alt+k/Alt+j
bind -n M-j previous-window
bind -n M-k next-window
2024-08-25 13:36:11 +00:00
# Fix tmux color issue for vim
set -g default-terminal "xterm-256color"
2024-08-25 21:42:02 +00:00
# Enable mouse mode
set -g mouse on
2024-08-25 13:36:11 +00:00
2024-08-25 20:01:22 +00:00
# Tmux Plugin Manager
# Note: Clone https://github.com/tmux-plugins/tpm to ~/.tmux/plugins/tpm first
set -g @plugin 'tmux-plugins/tpm'
# Theme
set -g @plugin 'egel/tmux-gruvbox'
set -g @tmux-gruvbox 'dark'
#set -g @plugin 'jimeh/tmux-themepack'
#set -g @themepack 'powerline/double/magenta'
# Load Tmux Plugin Manager (keep this at the end)
run '~/.tmux/plugins/tpm/tpm'