Skip to content

Instantly share code, notes, and snippets.

@JSkally
Last active December 17, 2015 10:29
Show Gist options
  • Save JSkally/5595557 to your computer and use it in GitHub Desktop.
Save JSkally/5595557 to your computer and use it in GitHub Desktop.
A pretty simple .tmux.conf file to get anyone started on tmux
#Ctrl-a instead of Ctrl-b
unbind C-b
set -g prefix C-a
#Ctrl-a takes you back to your last window
bind-key C-a last-window
#load man page
bind-key ? command-prompt "split-window -h 'exec man %%'"
#Reload
bind r source-file ~/.tmux.conf
#Spliting
bind-key - split-window -v
bind-key _ split-window -v
bind-key \ split-window -h
#Resizing
bind-key -r < resize-pane -L 3
bind-key -r > resize-pane -R 3
bind-key -r + resize-pane -U 1
bind-key -r = resize-pane -D 1
#Pane switching (alt-<Arrow key>)
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
#Normal scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
#Mouse functionality
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment