Skip to content

Instantly share code, notes, and snippets.

@ivanovs-4
Created August 24, 2018 08:52
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 ivanovs-4/24c1aba99da347d88b5244369df99b53 to your computer and use it in GitHub Desktop.
Save ivanovs-4/24c1aba99da347d88b5244369df99b53 to your computer and use it in GitHub Desktop.
Tmux config
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @colors-solarized 'dark'
# set -g @colors-solarized 'light'
set -g @plugin 'tmux-plugins/tmux-sessionist'
set-option -g prefix '\'
unbind-key c-b
set -sg escape-time 1
setw -g aggressive-resize on
setw -g automatic-rename off
# setw -g set-titles on
# Number windows and panes starting at 1 so that we can jump to
# them easier.
set -g base-index 1
set -g pane-base-index 1
# vi mode.
set -g mode-keys vi
set -g status-keys vi
set -g status-justify centre
# ##############################################################
# Key bindings.
# Join previous active pane/window to the current window
# bind '@' join-pane -s !
#bind Q kill-session
# Reload .tmux.conf with "r".
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Use Alt-vim keys without prefix key to switch panes
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
# Select panes with vi-style movement commands.
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind T select-layout tiled
bind -r H resize-pane -L 1
bind -r J resize-pane -D 1
bind -r K resize-pane -U 1
bind -r L resize-pane -R 1
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
########################################################################################
# # No 256-color mode.
# set -g default-terminal "xterm"
set -g status-left "#[fg=blue]#S"
set -g status-right ' #{?client_prefix,#[reverse]<Prefix>#[noreverse] ,} %Y-%m-%d %a %H:%M'
########################################################################################
# Initializes TMUX plugin manager.
# # Keep this line at the very bottom of tmux.conf.
run-shell '~/.tmux/plugins/tpm/tpm'
bind-key '\' send-prefix # make it after initializing tpm
# Pane Divider Colors
set -g pane-border-fg blue
set -g pane-border-bg black
set -g pane-active-border-fg yellow
set -g pane-active-border-bg black
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment