Created
June 7, 2012 17:47
-
-
Save benzap/2890341 to your computer and use it in GitHub Desktop.
Tmux configuration file
This file contains 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
# Make it use C-a, similar to screen.. | |
unbind C-b | |
unbind l | |
set -g prefix C-a | |
bind-key C-a last-window | |
# change window splitting to emacs style | |
unbind % | |
unbind 3 | |
bind 3 split-window -h | |
unbind 2 | |
bind 2 split-window -v | |
# change window list key to buffer list key | |
unbind w | |
unbind b | |
bind b choose-window | |
#break panes into their own windows | |
unbind 4 | |
bind 4 break-pane | |
# Screen type screen renaming | |
# title A | |
unbind A | |
bind A command-prompt "rename-window %%" | |
# kill K k | |
unbind k | |
bind k kill-window | |
# kill pane 0 | |
unbind 0 | |
bind 0 kill-pane | |
# kill all but the given pane | |
unbind 1 | |
bind 1 kill-pane -a | |
# Reload key | |
# only tested ubuntu 11.04/12.04 | |
bind r source-file ~/.byobu/.tmux.conf | |
set -g default-terminal "screen-256color" | |
set -g history-limit 1000 | |
### THEME ### | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-interval 60 | |
set -g status-left-length 30 | |
#set -g status-left '#[fg=green](#S) #(whoami)@#H#[default]' | |
set -g status-left " #[fg=colour94]|#[fg=colour95]>#[fg=colour96]<#[fg=colour97](#[fg=colour98](#[fg=colour99](#[fg=colour98](#[fg=colour88]'#[fg=colour97]>#[fg=colour27].#[fg=colour26].#[fg=colour32]. #[fg=colour33]\[#[fg=colour137]#(ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')#[fg=colour33]\] #[default]" | |
set -g status-right "#[fg=colour112]HD: #[fg=colour115]#(df | grep '/dev/' | awk -v OFS=' ' '$1=$1' | cut -s -d' ' -f5-6 | tr '\n' ' ')#[default] #[fg=colour226]CPU: #[fg=colour221]#(cut -d ' ' -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default] " | |
# Highlight active window | |
set-window-option -g window-status-current-bg red | |
# automatic variable naming | |
setw -g automatic-rename | |
# set correct term | |
set -g default-terminal screen-256color | |
#for startup ~/.bashrc | |
# TMUX | |
#if which tmux 2>&1 >/dev/null; then | |
# # if no session is started, start a new session | |
# test -z ${TMUX} && tmux | |
# | |
# # when quitting tmux, try to attach | |
# while test -z ${TMUX}; do | |
# tmux attach || break | |
# done | |
#fi | |
#####Color Theme | |
#### COLOUR | |
# default statusbar colors | |
set-option -g status-bg colour235 #base02 | |
set-option -g status-fg colour136 #yellow | |
set-option -g status-attr default | |
# default window title colors | |
set-window-option -g window-status-fg colour244 | |
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 colour166 #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 colour130 #brown | |
set-option -g pane-active-border-fg colour166 | |
set-option -g pane-active-border-bg colour240 | |
# message text | |
set-option -g message-bg colour235 #base02 | |
set-option -g message-fg colour166 #orange | |
# pane number display | |
set-option -g display-panes-active-colour colour33 #blue | |
set-option -g display-panes-colour colour166 #orange | |
# clock | |
set-window-option -g clock-mode-colour colour64 #green | |
#aggressive resizing | |
setw -g aggressive-resize on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment