Skip to content

Instantly share code, notes, and snippets.

@1094
Last active May 9, 2021 06:21
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 1094/4ff313cedd4b686541f3f3ab485e9b79 to your computer and use it in GitHub Desktop.
Save 1094/4ff313cedd4b686541f3f3ab485e9b79 to your computer and use it in GitHub Desktop.
tmux conf
# prefix
set-option -g prefix M-Space
set -g default-terminal "screen-256color"
set -g status-keys vi
setw -g mode-keys vi
set -g base-index 1
setw -g pane-base-index 1
# Keys
unbind Left
unbind Right
unbind Up
unbind Down
unbind p
bind R source-file ~/.tmux.conf \; display "refreshed!"
bind M-Space send-prefix
bind Q confirm kill-window
bind b split-window -h
bind v split-window -v
bind Left resize-pane -L 5
bind Right resize-pane -R 5
bind Down resize-pane -D 5
bind Up resize-pane -U 5
bind l select-pane -R
bind k select-pane -U
bind j select-pane -D
bind h select-pane -L
bind -n W next
# copy mode
bind P copy-mode
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-selection
bind p paste-buffer
# panes
set -g window-style 'fg=color14,bg=color0'
set -g window-active-style 'fg=color8'
set -g pane-border-style 'fg=color8 bg=color0'
set -g pane-active-border-style 'bg=color0 fg=color8'
# status bar
set-option -g status on
set-option -g status-interval 1
set-option -g status-position top
set-option -g status-style fg=colour136,bg=colour235
set-window-option -g window-status-format '#I:#W'
set-window-option -g window-status-current-format '[#I:#W]'
set-window-option -g window-status-style fg=colour244
set-window-option -g window-status-current-style fg=colour166
set -g status-justify left
set -g status-left "#[fg=blue] "
set -g status-right "#[fg=green][%H%M]"
# plugins
# git clone https://github.com/tmux-plugins/tmux-resurrect ~/.tmux-plugins/tmux-resurrect/
run-shell ~/.tmux-plugins/tmux-resurrect/resurrect.tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment