Created
June 13, 2016 15:16
-
-
Save deweller/8a85731e3bdf7e3a19a1dec4c1244ecb to your computer and use it in GitHub Desktop.
My remote tmux config
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
# for remote servers | |
unbind C-b | |
# use C-a for prefix | |
set-option -g prefix C-a | |
# change delay | |
set -sg escape-time 1 | |
# Set the default terminal mode to 256color mode | |
set -g default-terminal "xterm-256color" | |
# scrollback | |
set -g history-limit 10000 | |
# bind C-u to delete a line for quick searches | |
bind-key -t vi-edit C-u delete-line | |
# send ctl-a through with ctl-a a | |
bind a send-prefix | |
# vi mode | |
setw -g mode-keys vi | |
setw -g status-keys vi | |
# splitting panes | |
bind | split-window -h | |
bind - split-window -v | |
# next pane | |
bind C-a select-pane -t :.+ | |
bind C-x clear-history | |
# enable activity alerts | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# set the status line's colors | |
set -g status-fg white | |
set -g status-bg black | |
# set the color of the window list | |
setw -g window-status-fg cyan | |
setw -g window-status-bg default | |
setw -g window-status-attr dim | |
# set colors for the active window | |
setw -g window-status-current-fg white | |
setw -g window-status-current-bg red | |
setw -g window-status-current-attr bright | |
# pane colors | |
set -g pane-border-fg green | |
set -g pane-border-bg black | |
set -g pane-active-border-fg white | |
set -g pane-active-border-bg yellow | |
# Command / message line | |
set -g message-fg white | |
set -g message-bg black | |
set -g message-attr bright | |
# Status line left side | |
set -g status-left-length 40 | |
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P" | |
set -g status-utf8 on | |
# Status line right side | |
# 15% | 28 Nov 18:15 | |
set -g status-right "#[fg=cyan]%d %b %R" | |
# Update the status bar every sixty seconds | |
set -g status-interval 60 # Center the window list | |
set -g status-justify centre | |
# turn off auto renaming | |
# set-window-option -g automatic-rename off | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment