Last active
February 21, 2021 16:56
-
-
Save TheCedarPrince/07f6f8f79b1451ec436ff8dee236ccdd to your computer and use it in GitHub Desktop.
My tmux Configuration File
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
###################################################################### | |
# START OF PLUGINS | |
###################################################################### | |
# Plugin manager for tmux | |
set -g @plugin 'tmux-plugins/tpm' | |
# Simple tmux options for anyone | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
# Gruvbox theme for tmux - powerline support! | |
# set -g @plugin 'egel/tmux-gruvbox' | |
# Persistent tmux envs across system restarts | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
# Continuous saving of tmux environment | |
set -g @plugin 'tmux-plugins/tmux-continuum' | |
####################################################### | |
# TMUX-CONTINUUM | |
####################################################### | |
# Enables restoral of saved tmux config | |
set -g @continuum-restore 'on' | |
# How often to save a tmux layout | |
set -g @continuum-save-interval '10' | |
####################################################### | |
# TMUX-RESURRECT | |
####################################################### | |
# Capture contents of each pane | |
set -g @resurrect-capture-pane-contents 'on' | |
# Set to resurrect neovim sessions | |
set -g @resurrect-strategy-nvim 'session' | |
# Processes to resurrect | |
set -g @resurrect-processes '~julia' | |
####################################################### | |
# TMUX-SENSIBLE | |
####################################################### | |
# Increase scrollback buffer size | |
set -g history-limit 5000 | |
###################################################################### | |
# END OF PLUGINS | |
###################################################################### | |
###################################################################### | |
# START OF GENERAL CONFIGURATIONS | |
###################################################################### | |
# Turn on interactivity with mouse | |
set -g mouse on | |
# Enables italics in tmux | |
set -g default-terminal "tmux-256color" | |
# Turns off the status bar | |
set -g status off | |
# Change the position of the status bar | |
# set-option -g status-position bottom | |
# Start window numbering at specific num | |
set -g base-index 1 | |
# Renumber windows on window close | |
set -g renumber-windows on | |
####################################################### | |
# KEY BINDING | |
####################################################### | |
# hjkl pane traversal | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# Bind popup display commands | |
bind t popup -KER "topydo columns" | |
bind d popup -h80% -w80% -KR "gcalcli --calendar \"JZ Calendar\" calw" | |
bind s popup -h80% -w80% -KER "spt" | |
bind C-t popup -KR "$SHELL" | |
###################################################################### | |
# END OF GENERAL CONFIGURATIONS | |
###################################################################### | |
# Initialize tpm plugin manager - DO NOT MOVE | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment