Last active
January 7, 2020 18:56
-
-
Save ahmdtaha/6a36586edc08edeb2374df1fde199962 to your computer and use it in GitHub Desktop.
Making tmux keys similar to unix screen
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
# Making tmux keys similar to unix screen | |
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# change shortcuts for split vertical and horizontal | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % | |
# bind list windows with '"' like in screen | |
bind '"' choose-tree -w | |
unbind "w" | |
# 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 | |
# add mouse support | |
set-option -g mouse on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment