Skip to content

Instantly share code, notes, and snippets.

@vbogretsov
Last active August 13, 2018 10:26
Show Gist options
  • Select an option

  • Save vbogretsov/a4215685104d928f16f4270c0798eac5 to your computer and use it in GitHub Desktop.

Select an option

Save vbogretsov/a4215685104d928f16f4270c0798eac5 to your computer and use it in GitHub Desktop.
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
set -g @plugin 'soyuka/tmux-current-pane-hostname'
run '~/.tmux/plugins/tpm/tpm'
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-bg black #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg black #base02
set-option -g pane-active-border-fg black #base01
# message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
# bell
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red
# Prefix
set-option -g prefix M-a
# Esc delay
set -sg escape-time 0
# Windows split keys
bind v split-window -v
bind h split-window -h
# resize panes like vim
bind , resize-pane -L 10
bind . resize-pane -R 10
bind - resize-pane -D 10
bind = resize-pane -U 10
bind w new-window
bind l choose-window
# start selection with 'space' and copy using 'y'
bind e copy-mode
bind-key -Tcopy-mode-vi 'e' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
set-window-option -g mode-keys vi
setw -g monitor-activity on
set-option -g default-command 'reattach-to-user-namespace -l $SHELL'
# Status line
set -g status-interval 2
# Add GitBar
set -g status-left-length 200
set -g status-left '#[fg=black,bg=green] #(whoami)@#H#[default]#[fg=black,bg=colour246] #(tmux display-message -p "#{pane_current_path}" | sed "s#$HOME#~#g") #[default] '
# MEM CPU load
set -g status-right-length 200
set -g status-right '#[fg=black,bg=colour246]#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load -g 0 -a 0) #[fg=black,bg=green]%a %h-%d %H:%M #[default]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment