Last active
April 20, 2024 10:35
-
-
Save cassiorsfreitas/fc8877cf095b831471f4fc11201a1672 to your computer and use it in GitHub Desktop.
tmux-config
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
# set -g default-terminal "screen-256color" | |
set -s default-terminal 'tmux-256color' | |
set -g prefix C-Space | |
unbind C-b | |
bind-key C-Space send-prefix | |
unbind % | |
bind | split-window -h | |
unbind '"' | |
bind - split-window -v | |
unbind r | |
bind r source ~/.tmux.conf | |
bind -r j resize-pane -D 5 | |
bind -r k resize-pane -U 5 | |
bind -r l resize-pane -R 5 | |
bind -r h resize-pane -L 5 | |
set -g mouse on | |
set-window-option -g mode-keys vi | |
bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v" | |
bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y" | |
unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode after dragging with mouse | |
# remove delay for exiting insert mode with ESC in Neovim | |
set -sg escape-time 10 | |
# tpm plugin | |
set -g @plugin 'tmux-plugins/tpm' | |
# list of tmux plugins | |
set -g @plugin 'christoomey/vim-tmux-navigator' # for navigating panes and vim/nvim with Ctrl-hjkl | |
set -g @plugin 'tmux-plugins/tmux-resurrect' # persist tmux sessions after computer restart | |
set -g @plugin 'tmux-plugins/tmux-continuum' # automatically saves sessions for you every 15 minutes | |
set -g @plugin 'dracula/tmux' | |
# configs | |
set -g @dracula-plugins "cpu-usage ram-usage" | |
set -g @dracula-show-powerline true | |
set -g @dracula-show-left-icon session | |
set -g @resurrect-capture-pane-contents 'on' # allow tmux-ressurect to capture pane contents | |
set -g @continuum-restore 'on' # enable tmux-continuum functionality | |
# 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