Last active
April 21, 2021 00:24
-
-
Save preetampvp/833aaa90e1c35f23eef7b27e8f6fd2f1 to your computer and use it in GitHub Desktop.
tmux config
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
set -g default-terminal "screen-256color" | |
# remap prefix to Control + Space | |
set -g prefix C-j | |
unbind C-b | |
bind C-j send-prefix | |
# force a reload of the config file | |
unbind R | |
bind R source-file ~/.tmux.conf\; display-message "Reloaded!!" | |
setw -g mouse on | |
# quick pane cycling | |
unbind ^b | |
bind ^b select-pane -t :.+ | |
#prevent auto renaming window | |
set-option -g allow-rename off | |
set-window-option -g mode-keys vi | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
#bind C-j resize-pane -D 10 | |
#bind C-k resize-pane -U 10 | |
#bind C-l resize-pane -L 10 | |
#bind C-h resize-pane -R 10 | |
# split panes | |
bind | split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % | |
set -sg escape-time 0 | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set-option -g status-position top | |
set-option -g repeat-time 1000 | |
# 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-prefix-highlight \ | |
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 \ | |
' | |
# 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