Skip to content

Instantly share code, notes, and snippets.

@mizofumi
Created September 11, 2025 05:58
Show Gist options
  • Select an option

  • Save mizofumi/568307eb7e91cacd14c2a134d94141e1 to your computer and use it in GitHub Desktop.

Select an option

Save mizofumi/568307eb7e91cacd14c2a134d94141e1 to your computer and use it in GitHub Desktop.
set-option -g status-position top
set-option -g renumber-windows on
#set-option -g default-terminal screen-256color
set -g default-terminal "xterm-256color"
#set -g terminal-overrides 'xterm:colors=256'
set -g prefix C-f
unbind C-b
bind S command-prompt -p "New Session:" "new-session -A -s '%%'"
bind R command-prompt -p "Rename Session:" "rename-session '%%'"
bind-key r command-prompt -I "#W" "rename-window '%%'"
bind w choose-tree -Zs
# prev window
#bind i
# next window
#bind o
# new window
# bind t
# bind j select-pane -L
# bind m select-pane -D
# bind i select-pane -U
# bind k select-pane -R
#
# bind -r H resize-pane -L 5
# bind -r J resize-pane -D 5
# bind -r K resize-pane -U 5
# bind -r L resize-pane -R 5
#
# bind | split-window -h \; select-layout even-horizontal
# bind - split-window -v \; select-layout even-vertical
#
# # pane layout
# bind-key -n M-1 select-layout main-horizontal
# bind-key -n M-2 select-layout main-vertical
# bind-key -n M-3 select-layout tiled
# bind-key -n M-4 select-layout even-horizontal
# bind-key -n M-5 select-layout even-vertical
bind s setw synchronize-panes \; display "synchronize-panes #{?pane_synchronized,on,off}"
# bind ^h select-layout even-horizontal
# bind ^v select-layout even-vertical
set-option -g mouse on
bind-key -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind-key -n WheelDownPane select-pane -t= \; send-keys -M
# setw -g mode-keys vi
#set -g @plugin "arcticicestudio/nord-tmux"
set -g @plugin "tmux-plugins/tmux-yank"
set -g @plugin "tmux-plugins/tmux-battery"
set -g @plugin "tmux-plugins/tmux-resurrect"
set -g @plugin "tmux-plugins/tmux-pain-control"
set -g @plugin 'arcticicestudio/nord-tmux'
#set -g @plugin 'jimeh/tmux-themepack'
#set -g @themepack 'powerline/double/cyan'
run -b '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment