Skip to content

Instantly share code, notes, and snippets.

@raabuchanan
Last active May 31, 2018 01:45
Show Gist options
  • Save raabuchanan/b89e1e9551c939f57b4b3511d03d4eac to your computer and use it in GitHub Desktop.
Save raabuchanan/b89e1e9551c939f57b4b3511d03d4eac to your computer and use it in GitHub Desktop.
Make tmux useable
# From Ham Vockee
# https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# 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
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# don't rename windows automatically
set-option -g allow-rename off
# always use bash :)
set -g default-shell /bin/bash
set -g default-terminal "screen-256color"
set -g default-command "bash"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment