Last active
January 11, 2021 10:26
-
-
Save gbaranski/8ec9a89811ec0eb72e616c65999e067a to your computer and use it in GitHub Desktop.
My Tmux config
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
# Remap prefix from 'C-b' to 'C-ai | |
unbind C-b # remove bind for C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# Start windows and panes at 1, not 0 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# Create Panes: window splitting | |
# Split vertically | |
unbind % | |
bind | split-window -h # Prefix | to create vertical split | |
# Split horizontally | |
unbind '"' | |
bind - split-window -v # Prefix - to create horizontal split | |
# resize panes | |
bind -r H resize-pane -L 5 # 5 px bigger to the left | |
bind -r J resize-pane -D 5 # 5 px bigger down | |
bind -r K resize-pane -U 5 # 5 px bigger up | |
bind -r L resize-pane -R 5 # 5 px bigger right | |
# set -g status-right '#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load -a 0 -g 5 --interval 2) | Battery: #{battery_percentage} | %a %h-%d %H:%M ' | |
set-option -g status-style bg=colour237,fg=colour223 # bg=bg1, fg=fg1 | |
set -g status-right "%a %h-%d %H:%M " | |
set -g status-right-length 200 | |
########################### | |
# Plugins | |
########################### | |
# To install plugins: | |
# 1) Add plugin down here | |
# 2) Prefix + I to install plugin | |
# To update plugins: | |
# 1) Prefix + U | |
# To remove plugins: | |
# 1) Remove line down here | |
# 2) Prefix + ALT + U | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'christoomey/vim-tmux-navigator' | |
# Other examples: | |
# set -g @plugin 'github_username/plugin_name' | |
# set -g @plugin 'git@github.com:user/plugin' | |
# set -g @plugin 'git@bitbucket.com:user/plugin' | |
# C-h => move to left pane | |
# C-j => move to pane below | |
# C-k => move to pane above | |
# C-l => move to right pane | |
# Smart pane switching with awareness of Vim splits. | |
# See: https://github.com/christoomey/vim-tmux-navigator | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment