Skip to content

Instantly share code, notes, and snippets.

@richxcame
Last active December 29, 2021 18:58
Show Gist options
  • Save richxcame/7de3602699fef84758ca5cb5202db471 to your computer and use it in GitHub Desktop.
Save richxcame/7de3602699fef84758ca5cb5202db471 to your computer and use it in GitHub Desktop.
Tmux custom key binding

Key bindings to tmux (my config file for tmux)

Create .tmux.conf file in root folder of user

# 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 with - and |
bind | split window -h
bind - split window -h
unbind '"'
unbind %

# reload config file
bind r source-file ~/.tmux.conf

# Enable vim-airline inside tmux
set -g default-terminal screen-256color

tmux

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