Last active
April 16, 2018 19:29
-
-
Save heiths/9c66b5a543a143936112 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
# set window split | |
bind-key v split-window -h | |
bind-key b split-window | |
#set -g window-style 'fg=colour247,bg=colour236' | |
#set -g window-active-style 'fg=colour254,bg=colour235' | |
set-option -g prefix C-Space | |
bind-key C-Space last-window | |
# Start numbering at 1 | |
set -g base-index 1 | |
# Allows for faster key repetition | |
set -s escape-time 0 | |
# Activity monitoring | |
# setw -g monitor-activity on | |
set -g visual-activity on | |
bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'" | |
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..." | |
set-option -g history-limit 100000 | |
set -g mouse on | |
# Status update interval | |
set -g status-interval 1 | |
# Basic status bar colors | |
set -g status-fg colour240 | |
set -g status-bg colour233 | |
# Left side of status bar | |
set -g status-left-bg colour233 | |
set -g status-left-fg colour243 | |
set -g status-left-length 40 | |
set -g status-left "#[fg=colour232,bg=colour39,bold] #S #[fg=colour39,bg=colour240,nobold]#[fg=colour233,bg=colour240] #(whoami) #[fg=colour240,bg=colour235]#[fg=colour240,bg=colour235] #I:#P #[fg=colour235,bg=colour233,nobold]" | |
# Right side of status bar | |
set -g status-right-bg colour233 | |
set -g status-right-fg colour243 | |
set -g status-right-length 150 | |
set -g status-right "#[fg=colour235,bg=colour233]#[fg=colour240,bg=colour235] %H:%M:%S #[fg=colour240,bg=colour235]#[fg=colour233,bg=colour240] %d-%b-%y #[fg=colour245,bg=colour240]#[fg=colour232,bg=colour245,bold] #H " | |
# Window status | |
set -g window-status-format " #I:#W#F " | |
set -g window-status-current-format "#[fg=colour233,bg=black]#[fg=colour81,nobold] #I:#W#F #[fg=colour233,bg=black,nobold]" | |
# Current window status | |
set -g window-status-current-bg colour39 | |
set -g window-status-current-fg colour235 | |
# Window with activity status | |
set -g window-status-activity-bg colour245 # fg and bg are flipped here due to | |
set -g window-status-activity-fg colour233 # a bug in tmux | |
# Window separator | |
set -g window-status-separator "" | |
# Window status alignment | |
set -g status-justify centre | |
# Pane border | |
set -g pane-border-bg default | |
set -g pane-border-fg colour238 | |
# Active pane border | |
set -g pane-active-border-bg default | |
set -g pane-active-border-fg colour39 | |
# Pane number indicator | |
set -g display-panes-colour colour233 | |
set -g display-panes-active-colour colour245 | |
# Clock mode | |
set -g clock-mode-colour colour39 | |
set -g clock-mode-style 24 | |
# Message | |
set -g message-bg colour39 | |
set -g message-fg black | |
# Command message | |
set -g message-command-bg colour233 | |
set -g message-command-fg black | |
# Mode | |
set -g mode-bg colour39 | |
set -g mode-fg colour232 | |
# New binds | |
bind-key S command-prompt "new-window -n %1 'ssh %1'" | |
# binds for custom servers | |
# bind-key 1 command-prompt "new-window 'ssh asvr'" | |
# bind-key 2 command-prompt "split-window 'ssh msvr'" | |
# bind-key 3 command-prompt "split-window 'ssh hsvr'" | |
# bind-key 4 command-prompt "split-window 'ssh zsvr'" | |
# bind-key M command-prompt "split-window 'exec man %%'" | |
# bind-key M command-prompt "split-window 'exec man %%'" | |
# | |
# | |
set-option -g prefix C-Space | |
bind-key C-Space last-window | |
# Start numbering at 1 | |
set -g base-index 1 | |
# -- Make sure we have true colors | |
# Allows us to use C-a a <command> to send commands to a TMUX session inside | |
# another TMUX session | |
bind-key a send-prefix | |
# Activity monitoring | |
# setw -g monitor-activity on | |
set -g visual-activity on | |
# -- Allow some bindings like shift+arrows to work | |
# hjkl pane traversal | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'" | |
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..." | |
setw -g mode-keys vi | |
# Quick window selection | |
#bind-key -r C-h select-pane -t :- | |
#bind-key -r C-l select-window -t :+ | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
# -- Ordering windows | |
bind-key -r f swap-window -t +1 | |
bind-key -r < swap-window -t +1 | |
bind-key -r s swap-window -t -1 | |
set-option -ga terminal-overrides "xterm-256color:Tc" | |
set -g mouse on | |
set -sg escape-time 0 | |
unbind p | |
bind C-s set-window-option synchronize-panes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment