Skip to content

Instantly share code, notes, and snippets.

@alexanderjeurissen
Created November 8, 2014 21:18
Show Gist options
  • Save alexanderjeurissen/5ebde78c68e53a552bf0 to your computer and use it in GitHub Desktop.
Save alexanderjeurissen/5ebde78c68e53a552bf0 to your computer and use it in GitHub Desktop.
# -polka-
# Remove the default keybinding
unbind C-b
# Set a new keybinding to C-/. In terminals C-/ is the same as C-_
# however in tmux we can't bind to C-/
set -g prefix C-t
# lower interval for faster updates
set -g status-interval 5
# enable vim mode
setw -g mode-keys vi
# Act like vim for selecting panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Set term color properly
set -g default-terminal "screen-256color"
# change the escape time in tmux to zero
set-option -sg escape-time 0
# status related options
set -g status-left-length 150
set -g status-right-length 250
set -g status-fg brightblue
set -g status-bg brightwhite
set -g window-status-activity-attr bold
set -g pane-border-fg brightgreen
set -g pane-active-border-fg brightgreen
set -g message-fg yellow
set -g message-bg white
set -g message-attr bold
set-window-option -g window-status-current-fg white
set -g @online_icon "ok"
set -g @offline_icon "offline!"
set -g status-left '#[fg=white,bg=brightcyan,bold] ❐ #S #[fg=brightcyan,bg=brightyellow,nobold]⮀#[fg=brightcyan,bg=brightyellow,bold] #(whoami) #[fg=brightyellow,bg=brightwhite,nobold]⮀'
set -g window-status-format "#[fg=yellow,bg=brightwhite] #I #W "
set -g window-status-current-format "#[fg=brightwhite,bg=yellow]⮀#[fg=brightwhite,bg=yellow,noreverse,bold] #I ⮁ #W #[fg=yellow,bg=brightwhite,nobold]⮀"
set -g status-right "#{online_status} | %a %h-%d %H:%M | #(wemux status_users)"
# reload tmux file
unbind r
bind r source-file ~/.tmux.conf
# rename session to git repo
unbind n
bind-key n run-shell "tmux rename-session $(basename $(git rev-parse --show-toplevel))"
bind S copy-mode
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-online-status \
tmux-plugins/tmux-yank \
tmux-plugins/tmux-copycat \
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment