Skip to content

Instantly share code, notes, and snippets.

@burinov
Created August 28, 2018 08:26
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 burinov/e6d2936e1d9dbe16fdfeadd59c346fc4 to your computer and use it in GitHub Desktop.
Save burinov/e6d2936e1d9dbe16fdfeadd59c346fc4 to your computer and use it in GitHub Desktop.
# define prefix
set -g prefix C-a
# enable 256 colors
set -g default-terminal "screen-256color"
# bind tmux config reloading
bind r source-file ~/.tmux.conf \; display "> tmux config reloaded..."
# set window and pane base index
set -g base-index 1
setw -g pane-base-index 1
# change default delay
set -sg escape-time 1
# allow to send prefix to other apps
bind C-a send-prefix
# splitting panes
bind | split-window -h
bind - split-window -v
# colors
set -g status-fg white
set -g status-bg black
# regular window
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
# active window
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
# panes
set -g pane-border-fg colour8
set -g pane-border-bg colour8
set -g pane-active-border-fg colour2
set -g pane-active-border-bg colour8
# tmux command line#[fg=colour162]
set -g message-fg white
set -g message-bg red
set -g message-attr bright
set -g status-justify left
#set -g status-utf8 on
# status left
set -g status-left-length 30
set -g status-left "#[fg=colour240]Session: #[fg=colour162]#S "
set -g status-right "#[fg=blue]<#H> %d %b %R"
# monitor activity in other windows
setw -g monitor-activity on
set -g visual-activity on
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resizing pane
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
set-option -g lock-command vlock
set-window-option -g allow-rename off
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment