Last active
January 7, 2024 00:56
-
-
Save micdillon/1d761800768ed092f1a4b3a529230889 to your computer and use it in GitHub Desktop.
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
# Change the prefix to C-a from C-b | |
set -g prefix C-a | |
unbind C-b | |
# Set the delay between prefix and command | |
set -s escape-time 1 | |
# Set the base index for windows to 1 instead of 0 | |
set -g base-index 1 | |
# Set the base index for panes to 1 instead of 0 | |
setw -g pane-base-index 1 | |
# Reload .tmux.conf | |
bind r source-file ~/.tmux.conf \; display "~/.tmux.conf reloaded!" | |
# Ensure that we can send C-a to other apps | |
bind C-a send-prefix | |
# Splitting panes with | and - | |
bind | split-window -h | |
bind - split-window -v | |
# Ahhh, vimmy | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Move between windows | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# Resizing panes | |
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 | |
# Turn on the mouse | |
set -g mouse off | |
# Set the default terminal | |
set -g default-terminal "screen-256color" | |
# Set the status line's colors | |
set -g status-style fg=colour231,bg=colour238 | |
# enable vi keys. | |
setw -g mode-keys vi | |
# map copy/paste to vim keys | |
bind Escape copy-mode | |
bind -t vi-copy 'v' begin-selection | |
bind -t vi-copy 'y' copy-selection | |
unbind p | |
bind p paste-buffer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment