added tmux config

This commit is contained in:
Pratik
2019-12-18 00:28:29 +05:30
parent c3e4f2e0a6
commit b81bc45941
3 changed files with 28 additions and 4 deletions

24
.tmux.conf Normal file
View File

@@ -0,0 +1,24 @@
# Change prefix to -> (Ctrl + a)
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
# Use Alt-arrow keys to switch panes
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
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Mouse mode
setw -g mouse on
# Set easier window split keys
bind-key v split-window -h
bind-key h split-window -v
# Easy config reload
bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded."