Skip to content

Instantly share code, notes, and snippets.

@s1n7ax
Created February 24, 2026 06:56
Show Gist options
  • Select an option

  • Save s1n7ax/4db6e3c4aea26017152bbaac61489b73 to your computer and use it in GitHub Desktop.

Select an option

Save s1n7ax/4db6e3c4aea26017152bbaac61489b73 to your computer and use it in GitHub Desktop.
set -g default-terminal "tmux-256color"
set -g base-index 1
setw -g pane-base-index 1
# We need to set default-shell before calling new-session
set -g default-shell "/nix/store/d7c5pyb2bjz80aamiwlrnw0bvf5c5gyn-fish-4.4.0/bin/fish"
new-session
set -g status-keys emacs
set -g mode-keys emacs
bind-key -N "Kill the current window" & kill-window
bind-key -N "Kill the current pane" x kill-pane
set -g mouse off
set -g focus-events off
setw -g aggressive-resize off
setw -g clock-mode-style 12
set -s escape-time 0
set -g history-limit 50000
unbind-key -a
set -sg terminal-overrides ",*:RGB" # true color support
set -g mouse on
set -g renumber-windows on # keep numbering sequential
set -g repeat-time 1000 # increase "prefix-free" window
# Theme: borders
set -g pane-border-lines simple
set -g pane-border-style fg=black,bright
set -g pane-active-border-style fg=magenta
# Theme: status
set -g status-style bg=default,fg=black,bright
set -g status-left " "
set -g status-right "#[fg=black,bright]%I:%M %p #S "
set -g window-status-format "●"
set -g window-status-current-format "●"
set -g window-status-current-style "#{?window_zoomed_flag,fg=yellow,fg=magenta\#,nobold}"
set -g window-status-bell-style "fg=red,nobold"
bind-key -n M-d detach-client
bind-key -n M-a select-window -t 1
bind-key -n M-r select-window -t 2
bind-key -n M-s select-window -t 3
bind-key -n M-t select-window -t 4
set -g prefix M-t
set -g automatic-rename on
set -g automatic-rename-format '#{b:pane_current_path}'
bind n new-window
bind x kill-window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment