Created
December 30, 2015 05:02
-
-
Save SauloSilva/781c85621bc2af800c5e to your computer and use it in GitHub Desktop.
tmux.conf
This file contains hidden or 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
# Remap prefix Control + a | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
# Force a reload of the config file | |
unbind r | |
bind r source-file ~/.tmux.conf | |
# quick pane cycling | |
unbind ^A | |
bind ^A select-pane -t :.+ | |
# use PREFIX | to split window horizontally and PREFIX - to split vertically | |
bind | split-window -h -c "#{pane_current_path}" | |
bind - split-window -v -c "#{pane_current_path}" | |
# map Vim movement keys as pane movement keys | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# resize panes using PREFIX H, J, K, L | |
bind H resize-pane -L 5 | |
bind J resize-pane -D 5 | |
bind K resize-pane -U 5 | |
bind L resize-pane -R 5 | |
# use vim keybindings in copy mode | |
setw -g mode-keys vi | |
###################### | |
### DESIGN CHANGES ### | |
###################### | |
# panes | |
set -g pane-border-fg black | |
set -g pane-active-border-fg brightred | |
## Status bar design | |
set -g status-utf8 on | |
set -g status-justify left | |
set -g status-bg default | |
set -g status-fg colour12 | |
set -g status-interval 2 | |
# messaging | |
setw -g message-fg black | |
setw -g message-bg yellow | |
setw -g message-command-fg blue | |
setw -g message-command-bg black | |
#window mode | |
setww -g mode-bg colour6 | |
setww -g mode-fg colour0 | |
# window status | |
setw -g window-status-format " #F#I:#W#F " | |
setw -g window-status-current-format " #F#I:#W#F " | |
setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W " | |
setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W " | |
setw -g window-status-current-bg colour0 | |
setw -g window-status-current-fg colour11 | |
setw -g window-status-current-attr dim | |
setw -g window-status-bg green | |
setw -g window-status-fg black | |
setw -g window-status-attr reverse | |
# Info on left (I don't have a session display for now) | |
set-option -g status-left '#[fg=green][#[bg=black,fg=cyan]#[fg=green]]' | |
# loud or quiet? | |
setw-option -g visual-activity off | |
setw-option -g visual-bell off | |
setw-option -g visual-silence off | |
setw-window-option -g monitor-activity off | |
setw-option -g bell-action none | |
setw -g default-terminal "screen-256color" | |
# The modes { | |
setww -g clock-mode-colour colour135 | |
setww -g mode-attr bold | |
setww -g mode-fg colour196 | |
setww -g mode-bg colour238 | |
# } | |
# The panes { | |
setw -g pane-border-bg '#141400' | |
setw -g pane-active-border-bg '#141414' | |
setw -g pane-border-fg '#141400' | |
setw -g pane-active-border-fg '#141414' | |
# } | |
# The statusbar { | |
setw -g status-position bottom | |
setw -g status-bg colour234 | |
setw -g status-fg colour137 | |
setw -g status-attr dim | |
setw -g status-left '' | |
setw -g status-right '#S #{prefix_highlight}#[fg=colour245,bg=colour235,bold] CPU #{cpu_percentage} #[fg=colour234,bg=colour239,bold] %H:%M:%S #[fg=colour233,bg=colour241,bold] %d/%m/%y #[fg=colour235,bg=colour243,bold] #{battery_icon} #{battery_percentage} #[fg=colour233,bg=colour233,bold].' | |
setw -g status-right-length 50 | |
setw -g status-left-length 20 | |
setww -g window-status-current-fg colour81 | |
setww -g window-status-current-bg colour238 | |
setww -g window-status-current-attr bold | |
setww -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F ' | |
setww -g window-status-fg colour138 | |
setww -g window-status-bg colour235 | |
setww -g window-status-attr none | |
setww -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F ' | |
setww -g window-status-bell-attr bold | |
setww -g window-status-bell-fg colour255 | |
setww -g window-status-bell-bg colour1 | |
# } | |
# The messages { | |
setw -g message-attr bold | |
setw -g message-fg colour232 | |
setw -g message-bg colour166 | |
# } | |
# Custom | |
bind-key r source-file ~/.tmux.conf | |
setw-window-option -g automatic-rename off | |
setw-window-option -g pane-base-index 1 | |
setw-option -g default-command "reattach-to-user-namespace -l zsh" | |
# tmux messages are displayed for 4 seconds | |
set -g display-time 4000 | |
# refresh 'status-left' and 'status-right' more often | |
set -g status-interval 5 | |
# List of plugins | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-sidebar' | |
set -g @plugin 'tmux-plugins/tmux-battery' | |
set -g @plugin 'tmux-plugins/tmux-cpu' | |
set -g @plugin 'tmux-plugins/tmux-open' | |
set -g @plugin 'tmux-plugins/tmux-prefix-highlight' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
brew install tmux