Skip to content

Instantly share code, notes, and snippets.

@ourway
Created November 27, 2021 22:20
Show Gist options
  • Save ourway/8b78c938928acd15c25452d6c3bd3d64 to your computer and use it in GitHub Desktop.
Save ourway/8b78c938928acd15c25452d6c3bd3d64 to your computer and use it in GitHub Desktop.
unbind C-b
set -g prefix C-a
bind-key C-a last-window
bind-key e send-prefix
set -g @plugin 'tmux-plugins/tmux-sensible'
set -sg escape-time 0
set -g history-limit 300000
# bind-key r source-file ~/.tmux.conf
set -g default-command /bin/zsh
setw -g alternate-screen on
#new-session -n $HOST
set -g bell-action none
set -g status-right "%H:%M"
set -g window-status-current-style "underscore"
# If running inside tmux ($TMUX is set), then change the status line to red
%if #{TMUX}
set -g status-bg red
%endif
bind m set monitor-activity
bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}'
set -g base-index 1
setw -g pane-base-index 1
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
# increase scrollback buffer size
set -g history-limit 50000
# tmux messages are displayed for 4 seconds
set -g display-time 4000
# refresh 'status-left' and 'status-right' more often
set -g status-interval 5
# upgrade $TERM
set -g default-terminal "screen-256color"
# emacs key bindings in tmux command prompt (prefix + :) are better than
# vi keys, even for vim users
set -g status-keys emacs
# focus events enabled for terminals that support them
set -g focus-events on
# super useful when using "grouped sessions" and multi-monitor setup
setw -g aggressive-resize on
set -g status-bg black
set -g status-fg white
set -g window-status-current-style bg=yellow
set -g window-status-current-style fg=green
set -g status-left-length 60
set -g status-left '#[fg=blue](#S) thinkpad/#(whoami) | '
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment