Created
December 1, 2019 04:41
-
-
Save matthew-walter-works/9932510f46b69fd3e51e7732899d7bb6 to your computer and use it in GitHub Desktop.
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
# Change prefix key to CTRL+A. "C-" stands for CTRL, "M-" stands for ALT key | |
set-option -g prefix C-z | |
unbind-key C-b | |
bind-key C-z send-prefix | |
# split panes using | and - | |
bind \ split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % | |
# For copy and paste on Mac OS X - more @ https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard | |
set-option -g default-command "reattach-to-user-namespace -l bash" | |
# Extra settings borrowed from the Tmux Taster book | |
# Quick key for moving back to the previous window | |
bind-key L last-window | |
# Vim style bindings for pane movement | |
bind-key -r h select-pane -L | |
bind-key -r j select-pane -D | |
bind-key -r k select-pane -U | |
bind-key -r l select-pane -R | |
# Fix issue with tmux repeating -r the arrow directions (meaning when you switch panes you can accidentally jump back to the other pane again) | |
bind-key Up select-pane -U | |
bind-key Down select-pane -D | |
bind-key Left select-pane -L | |
bind-key Right select-pane -R | |
# Make resizing panes easier | |
bind-key < resize-pane -L 5 | |
bind-key > resize-pane -R 5 | |
bind-key + resize-pane -U 5 | |
bind-key - resize-pane -D 5 | |
#bind-key = select-layout even-vertical | |
#bind-key | select-layout even-horizontal | |
# Use Vi style key bindings to move around command line mode | |
set-option -g status-keys vi | |
# Use Vi style key bindings to move around copy mode | |
setw -g mode-keys vi | |
# Enable UTF-8 support in status bar | |
set -g status on | |
set -g status-utf8 on | |
# Increase scrollback lines | |
set -g history-limit 30000 | |
# Renumber windows automatically after removing a window | |
set-option -g renumber-windows on | |
#------------- MAGLEV THEME START------------------------ | |
# Start windows and panes at 1, not 0 | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set-option -g status-position top | |
set-option -g repeat-time 0 | |
# Removes ESC delay | |
set -sg escape-time 0 | |
# List of plugins | |
set -g @tpm_plugins ' \ | |
caiogondim/maglev \ | |
tmux-plugins/tpm \ | |
tmux-plugins/tmux-sensible \ | |
tmux-plugins/tmux-resurrect \ | |
tmux-plugins/tmux-continuum \ | |
tmux-plugins/tmux-yank \ | |
tmux-plugins/tmux-pain-control \ | |
tmux-plugins/tmux-copycat \ | |
tmux-plugins/tmux-open \ | |
tmux-plugins/tmux-battery \ | |
tmux-plugins/tmux-cpu \ | |
tmux-plugins/tmux-prefix-highlight \ | |
' | |
#------------------- MAGLEV THEME END -------------------------- | |
# Initialize TMUX plugin manager | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment