Skip to content

Instantly share code, notes, and snippets.

@ThiefMaster
Last active November 23, 2020 05:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThiefMaster/8103083 to your computer and use it in GitHub Desktop.
Save ThiefMaster/8103083 to your computer and use it in GitHub Desktop.
my tmux config
set -g prefix C-a
bind C-s send-prefix
bind F11 set -g prefix C-a \; display-message 'Prefix: ^A'
bind F12 set -g prefix C-b \; display-message 'Prefix: ^B'
unbind Space
bind h clear-history \; display-message 'Cleared history'
bind C new-window -c ~
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
bind '%' split-window -h -c "#{pane_current_path}"
bind Up select-pane -U
bind Down select-pane -D
bind Left select-pane -L
bind Right select-pane -R
bind C-d detach
bind C-a last-window
bind C-b last-window
bind C-l switch-client -l
bind F5 source /etc/tmux.conf \; source ~/.tmux.conf
bind C-c copy-mode
bind C-v paste-buffer
bind C-p setw synchronize-panes \; run-shell 'tmux display-message "Set option: synchronize-panes -> $(tmux showw -v synchronize-panes)"'
bind -t emacs-copy C-a start-of-line
set -g base-index 1
set -g default-terminal screen
set -g history-limit 20000
setw -g automatic-rename on
setw -g allow-rename off
setw -g monitor-activity off
set -g visual-activity off
# Status colors
setw -g window-status-current-bg colour143
setw -g window-status-current-fg colour18
set -g status-fg colour142
set -g status-bg colour18
set -g status-left '\o/ '
set -g status-left-fg colour46
set -g status-right '#[fg=colour39]#(whoami)@#H #[fg=green]%H:%M %b-%d #[fg=colour39][#(cut -d " " -f 1 /proc/loadavg)]'
# Terminal title
set -g set-titles on
set -g set-titles-string '#T'
set -s escape-time 10
set -g terminal-overrides "*256col*:colors=256,*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@:smcup@:rmcup@:XT"
set -g default-terminal 'screen-256color'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment