Skip to content

Instantly share code, notes, and snippets.

@Fatpandac
Created June 10, 2024 09:04
Show Gist options
  • Save Fatpandac/f3b6d987e08045ff5bb25ea0c0f73a45 to your computer and use it in GitHub Desktop.
Save Fatpandac/f3b6d987e08045ff5bb25ea0c0f73a45 to your computer and use it in GitHub Desktop.
tmux configuration file
set-option -sg escape-time 10
set-option -g focus-events on
set -gq allow-passthrough on
set -g visual-activity off
set-option history-limit 1000
set -g default-terminal screen-256color
set -g prefix C-a
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
unbind [
bind Escape copy-mode
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind i display-popup -w 70% -h 70% -d '#{pane_current_path}'
bind | split-window -hc "#{pane_current_path}"
bind - split-window -vc "#{pane_current_path}"
bind -r "<" swap-window -d -t -1
bind -r ">" swap-window -d -t +1
bind -r t run-shell "tmux neww cht"
bind -r s choose-session
bind r source-file ~/.tmux.conf \; display 'Reload!'
set -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
# theme
set -g status-interval 1
set -g status-right "#[fg=black,bg=green] #(tmux-mem-cpu-load --interval 2)#[fg=green]#S"
set -g status-right-length 120
set -g status-left "%Y/%m/%d(%a) %H:%M | "
set -g status-left-length 120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment