Created
September 4, 2019 19:48
-
-
Save dpo/85e8ab60fa23174d370424e093d0e593 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
set -g prefix Home | |
unbind C-b | |
bind-key Home send-prefix | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
# tmux-resurrect and tmux-continuum to save the state across system restarts | |
# prefix-Ctrl-s to save the state | |
# prefix-Ctrl-r to restore the state | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tmux-continuum' | |
# tmux-yank: Copy to the system clipboard in tmux | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
# tmux-cpu: Enables displaying CPU and GPU information in Tmux status-right and status-left | |
set -g @plugin 'tmux-plugins/tmux-cpu' | |
set -g status-right '#{cpu_bg_color} CPU: #{cpu_icon} #{cpu_percentage} | %a %h-%d %H:%M ' | |
# local customizations | |
set -g mouse off | |
set -g base-index 1 # number windows starting from 1 instead of 0 | |
setw -g pane-base-index 1 # number panes starting from 1 instead of 0 | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" # reload this config file with prefix-r | |
bind | split-window -h # more intuitive characters to split a window into panes | |
bind - split-window -v | |
setw -g mode-keys vi | |
unbind [ | |
bind Escape copy-mode | |
unbind p | |
bind p paste-buffer | |
unbind n | |
bind < previous-window # use prefix-< and prefix-> to cycle through windows | |
bind > next-window | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run -b '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment