Skip to content

Instantly share code, notes, and snippets.

@MaxySpark
Created June 15, 2020 05:03
Show Gist options
  • Save MaxySpark/13ce433a35ef50cf04cee7bfb1762e84 to your computer and use it in GitHub Desktop.
Save MaxySpark/13ce433a35ef50cf04cee7bfb1762e84 to your computer and use it in GitHub Desktop.
source /usr/share/powerline/bindings/tmux/powerline.conf
set -g mouse on
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind / split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# switch panes using Alt-arrow without prefix
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
@MaxySpark
Copy link
Author

Prerequisite
sudo apt-get install powerline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment