Last active
May 9, 2024 21:09
-
-
Save justinwalz/6a805b4dc41caedc6b14 to your computer and use it in GitHub Desktop.
basic tmux conf
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
# allow reload of this file with PRE r | |
bind r source-file ~/.tmux.conf \; display "Reloaded." | |
# switch prefix to control-a, unmap b, allow double-a to go through | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# -r repeat time (Default 500 millis) | |
set -g repeat-time 2000 | |
# colors | |
set -g default-terminal "screen-256color" | |
# mouse mode (scrolling, etc) | |
# tmux 2.1 | |
setw -g mouse on | |
# tmux < 2.1 | |
# setw -g mode-mouse on | |
# # set -g mouse-select-pane on | |
# set -g mouse-resize-pane on | |
# set -g mouse-select-window on | |
# remove delay | |
set -sg escape-time 1 | |
# set {window,pane} index to start at 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# remap split panes | |
# bind | split-window -h | |
# bind - split-window -v | |
# vim style through panes | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# vim style through windows (PRE Control-H/L) | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# vim style through resizing | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
# vim style movement (PRE [ then hjkl) | |
set-window-option mode-keys vi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Exactly what i needed !