Last active
November 29, 2018 22:19
-
-
Save javadnoorb/6bbbbb832bf7fe941280fdab3e946282 to your computer and use it in GitHub Desktop.
Some nice changes for tmux, including scrolling and clicking.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following has been adopted from 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 % | |
# switch panes using Alt-arrow without prefix | |
bind -n S-Left select-pane -L | |
bind -n S-Right select-pane -R | |
bind -n S-Up select-pane -U | |
bind -n S-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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment