Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ggtwlb0314/61088ae96d141fe34511b12f15abbc5b to your computer and use it in GitHub Desktop.

Select an option

Save ggtwlb0314/61088ae96d141fe34511b12f15abbc5b to your computer and use it in GitHub Desktop.
set-option -g prefix `
set -g default-terminal "xterm-256color"
bind-key a send-prefix
bind -n M-1 select-window -t :1
bind -n M-2 select-window -t :2
bind -n M-3 select-window -t :3
bind -n M-4 select-window -t :4
bind -n M-5 select-window -t :5
bind -n M-6 select-window -t :6
bind -n M-7 select-window -t :7
bind -n M-8 select-window -t :8
bind -n M-9 select-window -t :9
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
bind -n M-H resize-pane -L 2
bind -n M-J resize-pane -D 2
bind -n M-K resize-pane -U 2
bind -n M-L resize-pane -R 2
bind -n M-w kill-pane
bind -n M-- splitw -v
bind -n M-\ splitw -h
bind -n M-] splitw -h
bind -n M-Enter resizep -Z
bind -n M-s choose-tree
bind z kill-session
bind-key C-a last-window
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
set-option -g status-bg colour235
set-option -g status-fg colour136
set-option -g status-attr default
set-option -g message-bg colour235
set-option -g message-fg colour166
set-window-option -g window-status-fg colour244
set-window-option -g window-status-bg default
# default window title colors
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg colour166 #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set -g window-style 'bg=default'
set -g window-active-style 'bg=#262626'
set -g pane-border-fg colour235
set -g pane-active-border-fg colour240
set -g display-panes-active-colour colour33 #blue
set -g display-panes-colour colour166 #orange
set -g pane-active-border-style fg=colour208,bg=default
# clock
set-window-option -g clock-mode-colour green
set -g status-interval 1
set -g status-justify centre # center align window list
set -g status-left-length 20
set -g status-right-length 140
set -g status-left '#[fg=green]#H #[fg=black]• #[fg=green,bright]#(uname -r | cut -c 1-6)#[default]'
set -g status-right '#[fg=green,bg=default,bright]#(tmux-mem-cpu-load 1) #[fg=red,dim,bg=default]#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") #[fg=white,bg=default]%a%l:%M:%S %p#[default] #[fg=blue]%Y-%m-%d'
# Start numbering at 1
set -g base-index 1
set -s escape-time 0
setw -g aggressive-resize off
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on
# Vi copypaste mode
set-window-option -g mode-keys vi
#bind-key -t vi-copy 'v' begin-selection
#bind-key -t vi-copy 'y' copy-selection
# reload config
# auto window rename
set-window-option -g automatic-rename on
set-option -g allow-rename on
# rm mouse mode fail
set -g mouse on
# status bar
#set-option -g status-utf8 on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment