Created
September 8, 2020 13:58
-
-
Save ChristianTremblay/1ddcf3a8c27bb49b11cd2d8f1d813d87 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-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
set -g default-terminal "screen-256color" | |
set -g history-limit 10000 | |
# split panes using h and v | |
bind v split-window -h | |
bind h split-window -v | |
unbind '"' | |
unbind % | |
# switch panes using Alt-arrow without prefix | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
# switch windows Control-Arrow without prefix | |
# bind-key C-S-Tab previous-window | |
# bind -n C-page-up next-window | |
# Using Putty in Windows, Ctrl + x are not transmistted | |
#bind space next-window | |
#bind k confirm kill-window | |
#bind K confirm kill-server | |
# don't rename windows automatically | |
set-option -g allow-rename off | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# THEME | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-interval 60 | |
set -g status-left-length 30 | |
set -g status-left '#[fg=green](#S) 💻 #(whoami) ' | |
set -g status-right ' 📊 #[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] ⌚#[fg=white]%H:%M#[default]' | |
# reload config file (change file location to your the tmux.conf you want to use) | |
bind r source-file ~/.tmux.conf \; display "~/.tmux.conf sourced!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment