Skip to content

Instantly share code, notes, and snippets.

@danielglh
Last active January 16, 2022 16:01
Show Gist options
  • Save danielglh/24d0dc22fb4d6cf7bd21 to your computer and use it in GitHub Desktop.
Save danielglh/24d0dc22fb4d6cf7bd21 to your computer and use it in GitHub Desktop.
My Tmux Configuration
set -g prefix ^k
unbind ^b
bind a send-prefix
unbind '"'
bind - splitw -v # vertical split
unbind %
bind | splitw -h # horizonal split
bind k selectp -U # select the up window
bind j selectp -D # select the down window
bind h selectp -L # select the left window
bind l selectp -R # select the right window
bind ^k resizep -U 10 # enlarge the up window
bind ^j resizep -D 10 # enlarge the down window
bind ^h resizep -L 10 # enlarge the left window
bind ^l resizep -R 10 # enlarge the right window
bind ^u swapp -U # switch with the up window
bind ^d swapp -D # switch with the down window
bind m command-prompt "splitw -h 'exec man %%'"
set -g status-right "• #[fg=yellow]#(cut -d ' ' -f 1-3 /proc/loadavg)#[default] / #[fg=yellow]#(nproc)#[default]"
set -g status-bg black
set -g status-fg yellow
set -g default-terminal "screen-256color"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment