Last active
October 20, 2022 11:34
-
-
Save ignatiusreza/ae30203313e51190ff9bba3f59a9c449 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bring out all the color! | |
set -g default-terminal "xterm-256color" | |
# Start pane & window numbering at 1 | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
# Make the main pane in main-vertical layout wider | |
setw -g main-pane-width 120 | |
# Similar pane splitting shortcut to terminator | |
bind -n C-d split-window -h | |
bind -n C-e split-window -v | |
# 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 | |
# or vim style | |
bind -n M-h select-pane -L | |
bind -n M-l select-pane -R | |
bind -n M-k select-pane -U | |
bind -n M-j select-pane -D | |
# or by cycling them | |
bind -n C-n select-pane -t :.+ | |
bind -n M-n select-pane -t :.- | |
# I know what I'm doing :p | |
# Ensure that processes are killed when tmux windows are closed | |
bind -n C-q run-shell "tmux list-panes -t \"#{window_id}\" -F \"##{pane_id}\" | xargs -I {} tmux send-keys -t {} C-c" \; kill-window | |
bind -n C-w kill-pane | |
# Enable mouse control (clickable windows, panes, resizable panes) | |
set -g mouse on | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
# some community standard configuration | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
# persist tmux session across reboot | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tmux-continuum' | |
set -g @resurrect-strategy-vim 'session' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment