Last active
June 5, 2023 22:26
-
-
Save aalvarado/5556871752935d9b26de9e0437fbbd53 to your computer and use it in GitHub Desktop.
tmux.conf
This file contains hidden or 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 update-environment -r | |
# set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.tmux/plugins/' | |
set-environment -g 'SSH_AUTH_SOCK' ~/.ssh/ssh_auth_sock | |
#set -g default-terminal "tmux-256color" | |
# set -g default-terminal "screen-256color" | |
set -ga terminal-overrides ",xterm-256color:Tc" | |
set -g prefix M-p | |
# split panes using | and - | |
bind | split-window -h -c "#{pane_current_path}" | |
bind - split-window -v -c "#{pane_current_path}" | |
bind c new-window -c "#{pane_current_path}" | |
unbind '"' | |
unbind % | |
set-option -g allow-rename off | |
set -g history-limit 99999 | |
set -g repeat-time 200 | |
bind -r h select-pane -L | |
bind -r j select-pane -D | |
bind -r k select-pane -U | |
bind -r l select-pane -R | |
# force a reload of the config file | |
unbind r | |
bind r source-file ~/.tmux.conf | |
unbind-key C-l | |
unbind ^L | |
# forward_programs="n?vim?|ctrlp" | |
# should_forward="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?($forward_programs)(diff)?$'" | |
bind-key -n C-L send-keys -R \; | |
bind-key -n C-L if-shell "$should_forward" "send-keys C-l" "send-keys -R" | |
bind-key -n C-M-l send-keys -R \; clear-history | |
bind-key -n M-\; if-shell 'test #{window_panes} -gt 1' 'last-pane' 'last-window' | |
set -s set-clipboard on | |
# set-window-option -g mode-keys vi | |
set -g mode-keys vi | |
bind-key -T copy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode. | |
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode. | |
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection -x | |
# bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-selection -x | |
# Don't leave copy mode after yanking | |
set -g @yank_action 'copy-pipe' | |
set -g @yank_selection_mouse 'clipboard' | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
# set -g @plugin 'dracula/tmux' | |
set -g @plugin 'tmux-plugins/tmux-copycat' | |
set -g @plugin 'tmux-plugins/tmux-logging' | |
set -g @plugin 'tmux-plugins/tmux-urlview' | |
# set -g @ressurrect-processes '"~dc up" "~docker-compose up"' | |
set -g mouse on | |
# set -g @dracula-show-powerline true | |
# set -g @dracula-show-left-icon ' ' | |
# set -g @dracula-border-contrast false | |
# set -g @dracula-plugins "battery" | |
# set -g @dracula-battery-colors "dark_purple white" | |
# set -g @dracula-show-flags true | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment