Skip to content

Instantly share code, notes, and snippets.

@ourway
Created November 29, 2022 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ourway/20a34bf97c992e4ff93a5c315dcb6c23 to your computer and use it in GitHub Desktop.
Save ourway/20a34bf97c992e4ff93a5c315dcb6c23 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 120
set -g status-right-length 60
set -g status-right '#[fg=darkgrey](#S) #(whoami) {#(sysctl -n vm.loadavg | cut -d " " -f2 -f3 -f4)}'
# set -g status-right '#[fg=yellow]#(sysctl -n vm.loadavg | cut -d "" -f2 -f3 -f4)#[default] #[fg=white]%H:%M#[default]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment