Last active
September 13, 2018 09:50
-
-
Save figaw/9c3f02ac3caf27e57afca13fff4317ab to your computer and use it in GitHub Desktop.
tmux basic configuration for labs.play-with-k8s.com
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
# To get this configuration down, | |
# curl url-to-raw-gist -o ~/.tmux.conf | |
# | |
# Commands are from blogpost, | |
# http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/ | |
# | |
# if TMUX ain't reading the config, exit and use | |
# tmux source-file ~/.tmux.conf | |
# switch panes using Alt-arrow without prefix (ESC is the meta 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 | |
# split panes using | and - | |
bind / split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % | |
# Enable mouse control (clickable windows, panes, resizable panes) | |
set -g mouse-select-window off | |
set -g mouse-select-pane off | |
set -g mouse-resize-pane off | |
# Enable mouse mode (tmux 2.1 and above) (... figure out how to upgrade tmux) | |
# set -g mouse on | |
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# reload config file (change file location to your the tmux.conf you want to use) | |
bind r source-file ~/.tmux.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment