Skip to content

Instantly share code, notes, and snippets.

@mahyaret
Last active March 27, 2020 01:31
Show Gist options
  • Save mahyaret/f06d62ba4bb3f309b4187008c51343cf to your computer and use it in GitHub Desktop.
Save mahyaret/f06d62ba4bb3f309b4187008c51343cf to your computer and use it in GitHub Desktop.
tmux
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# to sync command in all the panes
bind -n C-x setw synchronize-panes
# scroll in tmux pane using hjkl
setw -g mode-keys vi
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# true-colors
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",*256col*:Tc"
## set -g default-terminal "screen-256color"
# tell Tmux that outside terminal supports true color
## set -ga terminal-overrides ",xterm-256color*:Tc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment