Skip to content

Instantly share code, notes, and snippets.

@ahmdtaha
Last active January 7, 2020 18:56
Show Gist options
  • Save ahmdtaha/6a36586edc08edeb2374df1fde199962 to your computer and use it in GitHub Desktop.
Save ahmdtaha/6a36586edc08edeb2374df1fde199962 to your computer and use it in GitHub Desktop.
Making tmux keys similar to unix screen
# 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