Created
July 13, 2016 21:04
-
-
Save waynew/bc84f66799a6529ffc9e0bfa128f51c4 to your computer and use it in GitHub Desktop.
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
# Switch me back to ^A, thanks | |
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key a send-prefix | |
# I miss ^A^A and ^ASpace | |
bind-key C-a last-window | |
bind-key Space next-window | |
bind-key C-Space previous-window | |
# Make keys move like my vim window bindings | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U | |
bind-key l select-pane -R | |
# Options | |
set-option -sg escape-time 50 # this makes vim fucking awful to use | |
set-option -g base-index 1 | |
set-option -g default-terminal screen-256color | |
set-option -g lock-command vlock | |
set-window-option -g xterm-keys on # to make ctrl-arrow, etc. work | |
set-option -g set-titles on | |
set-option -g set-titles-string '[#S:#I #H] #W' # use screen title | |
# COLORS. | |
# For reference, the xterm color cube points are: 00, 5F, 87, AF, D7, FF | |
# Status bar has a dim gray background | |
set-option -g status-bg colour234 | |
set-option -g status-fg colour0 | |
# Left shows the session name, in blue | |
set-option -g status-left-bg default | |
set-option -g status-left-fg colour74 | |
# Right is some CPU stats, so terminal green | |
set-option -g status-right-bg default | |
set-option -g status-right-fg colour71 | |
# Windows are medium gray; current window is white | |
set-window-option -g window-status-fg colour244 | |
set-window-option -g window-status-current-fg '#ffffff' | |
set-window-option -g window-status-current-bg '#000000' | |
# Beeped windows get a blinding orange background | |
set-window-option -g window-status-bell-fg '#000000' | |
set-window-option -g window-status-bell-bg '#d78700' | |
set-window-option -g window-status-bell-attr none | |
# Trim window titles to a reasonable length | |
set-window-option -g window-status-format '#[fg=yellow]#F#I#[default] #32W ' | |
set-window-option -g window-status-current-format '#[fg=yellow] #I#[default] #32W ' | |
set-option -g pane-active-border-bg black $ | |
# Make it not acually use the login zsh | |
set-option -g default-command zsh | |
set-option -g clock-mode-style 12 | |
# I like Vim, please | |
set-window-option -g mode-keys vi | |
# All my plugins, baby | |
set -g @tpm_plugins ' \ | |
tmux-plugins/tpm \ | |
tmux-plugins/tmux-resurrect \ | |
' | |
set -g @resurrect-processes 'ssh irssi alpine' | |
# Must be the last | |
run-shell '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Skip lines 59+ if you don't have the tpm plugin installed