Created
August 16, 2020 08:34
-
-
Save n1sh1th/e4acb4859483afb9c14da0598295f540 to your computer and use it in GitHub Desktop.
Tmux custom config file
This file contains hidden or 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
#Modifying tmux configurations : | |
#nano ~/.tmux.conf (If you can't find one create one) | |
#Source the file to apply changes | |
#tmux source-file ~/.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 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment