Skip to content

Instantly share code, notes, and snippets.

@diazleonardo
Created January 19, 2019 19:59
Show Gist options
  • Save diazleonardo/11bb28370dc81c7ca2bf90b08d37cdaa to your computer and use it in GitHub Desktop.
Save diazleonardo/11bb28370dc81c7ca2bf90b08d37cdaa to your computer and use it in GitHub Desktop.
.tmux.conf
# Global settings
# Set prefix key to Ctrl-a
unbind-key C-b
set-option -g prefix C-a
# send the prefix to client inside window
bind-key C-a send-prefix
#set default terminal for panes
# set -g default-terminal "screen-256color"
set -g default-terminal "tmux-256color"
# Use Alt-ARRWO to select panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
#
######set-option -g status-utf8 on
set -g status-bg green
set -g status-fg black
# set gray pane borders. It accents the current pane
set -g pane-border-fg colour238
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# auto window rename
set-window-option -g automatic-rename
# 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
# enable mouse selection|resize pane, select-window
set -g mouse on
run-shell ~/.tmux/tmux-resurrect/resurrect.tmux
set -g @resurrect-capture-pane-contents 'on'
# POWERLINE
#source /usr/local/lib/python3.5/dist-packages/powerline/bindings/tmux/powerline.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment