Skip to content

Instantly share code, notes, and snippets.

@oivoodoo
Created March 22, 2021 10:44
Show Gist options
  • Save oivoodoo/49de056eddec98b26ef5b86ce2e289c7 to your computer and use it in GitHub Desktop.
Save oivoodoo/49de056eddec98b26ef5b86ce2e289c7 to your computer and use it in GitHub Desktop.
tmux
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'jatap/tmux-base16-statusline'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
set-window-option -g mode-keys vi
unbind C-b
set-option -g prefix C-j
bind-key C-j send-prefix
# fix ESC vim issue
set -sg escape-time 0
# increase repeat time for repeatable commands
set -g repeat-time 1000
set -g mouse on
set -g history-limit 5000
# quickly switch panes
unbind ^J
bind ^J select-pane -t :.+
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind Space choose-buffer
# bind keys for copying
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
set-window-option -g mode-keys vi
set -g @base16-statusline 'main'
run -b '~/.tmux/plugins/tpm/tpm'
set-option -g default-shell /bin/zsh
set-option -g default-command /bin/zsh
set -g @shell_mode 'vi'
unbind %
bind % split-window -h -c "#{pane_current_path}"
unbind '"'
bind '"' split-window -v -c "#{pane_current_path}"
set -g base-index 1
setw -g pane-base-index 1
set -g @colors-solarized 'light'
set -g status-interval 2
set -g status-left "#S #[fg=green,bg=black]#(tmux-mem-cpu-load --colors --interval 2)#[default]"
set -g status-left-length 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment