Skip to content

Instantly share code, notes, and snippets.

@ChristianTremblay
Created September 8, 2020 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChristianTremblay/1ddcf3a8c27bb49b11cd2d8f1d813d87 to your computer and use it in GitHub Desktop.
Save ChristianTremblay/1ddcf3a8c27bb49b11cd2d8f1d813d87 to your computer and use it in GitHub Desktop.
My Tmux config
# 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