Skip to content

Instantly share code, notes, and snippets.

@denmojo
Forked from david-thorman/tmux.conf
Created September 11, 2015 22:03
Show Gist options
  • Select an option

  • Save denmojo/3e614a9fa8d45d00f544 to your computer and use it in GitHub Desktop.

Select an option

Save denmojo/3e614a9fa8d45d00f544 to your computer and use it in GitHub Desktop.
Wooo tmux
set -g prefix C-a
unbind C-b
bind a send-prefix
# Setting vi style stuff
set -g status-keys vi
set -g history-limit 10000
setw -g monitor-activity on
unbind ,
bind-key A command-prompt -I "#W" "rename-window '%%'"
bind-key '"' choose-window
bind-key v split-window -h
bind-key s split-window -v
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
bind-key M-j resize-pane -D
bind-key M-k resize-pane -U
bind-key M-h resize-pane -L
bind-key M-l resize-pane -R
bind-key C-o swap-pane -s 0
bind-key C-a last-window
bind-key @ set synchronize-panes
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# enable utf8
setw -g utf8 on
setw -g xterm-keys on
# use vi mode in scroll mode and paste mode
setw -g mode-keys vi
# Status Bars
set -g status-interval 5
set -g status-left-length 16
set -g status-left '[#14H:#S]'
set -g status-right '%a %m/%d %H:%M'
# Setting a default term that doesn't suck
set -g default-terminal "screen-256color"
# Making it nicer to attach in multiple places.
setw -g aggressive-resize on
set -g renumber-windows on
setw -g automatic-rename off
setw -g allow-rename off
### Zenburn ?
setw -g clock-mode-colour colour117
setw -g mode-attr bold
setw -g mode-fg colour117
setw -g mode-bg colour238
set -g status-bg colour235
set -g status-fg colour248
set -g status-attr dim
set -g status-left '¯\(°_o)/¯ #[fg=colour187,bold]#H'
set -g status-right '#[fg=colour174]<U+1F50B> [#(pmset -g batt | grep "[0-9]" | tr -s "[:blank:]" " " | cut -d" " -f 3-)] #[fg=colour187,bold]%a %m/%d %H:%M'
set -g status-right-length 80
set -g status-left-length 30
setw -g window-status-bg colour235
setw -g window-status-fg colour248
setw -g window-status-current-fg colour223
setw -g window-status-current-bg colour237
setw -g window-status-current-attr bold
setw -g window-status-bell-bg colour223
setw -g window-status-bell-fg colour237
setw -g window-status-activity-bg colour223
setw -g window-status-activity-fg colour237
set -g message-attr bold
set -g message-fg colour117
set -g message-bg colour237
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment