Skip to content

Instantly share code, notes, and snippets.

@alexander-alegre
Created November 6, 2020 18:56
Show Gist options
  • Save alexander-alegre/5be3b4008beb19fe1ab6f86514cb4fe6 to your computer and use it in GitHub Desktop.
Save alexander-alegre/5be3b4008beb19fe1ab6f86514cb4fe6 to your computer and use it in GitHub Desktop.
tmux configuration
#-------------------------------------------------------#
#reattach-to-user-namespace must be installed
#-------------------------------------------------------#
#the following line refers to the file ~/.tmux-osx.conf
if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.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 %
# dont rename windows
set -g allow-rename off
# Search mode vi
set-window-option -g mode-keys vi
# Enable mouse
set -g mouse on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment