Skip to content

Instantly share code, notes, and snippets.

@marschr
Created June 6, 2024 03:51
Show Gist options
  • Save marschr/e059cf8e9d605fe3376103782c3348a9 to your computer and use it in GitHub Desktop.
Save marschr/e059cf8e9d605fe3376103782c3348a9 to your computer and use it in GitHub Desktop.
my tmux dot file
# remap prefix from 'C-b' to 'C-a'
#unbind C-b
#set-option -g prefix C-a
#bind-key C-a send-prefix
set -g base-index 1
setw -g pane-base-index 1
set-option -g status-style "bg=color53"
set -g pane-border-style fg=color53
set -g pane-active-border-style "bg=default fg=magenta"
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Bind META + {NUM KEY} to switch to window {NUM}
bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
bind-key -n M-4 select-window -t 4
bind-key -n M-5 select-window -t 5
bind-key -n M-6 select-window -t 6
bind-key -n M-7 select-window -t 7
bind-key -n M-8 select-window -t 8
bind-key -n M-9 select-window -t 9
bind-key -n M-0 select-window -t 0
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
#Toggle mouse on with ^A m
bind m \
set -g mouse \;\
display 'Mouse: #{?mouse,on,off}'
# Toggle mouse off with ^A M
#bind m \
# set -g mouse \;\
# display 'Mouse: OFF'
#reload tmux config
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
#set bell to visual only, disable terminal beep
set -g visual-bell on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment