Skip to content

Instantly share code, notes, and snippets.

@bougui505
Created March 14, 2014 08:30
Show Gist options
  • Save bougui505/9544045 to your computer and use it in GitHub Desktop.
Save bougui505/9544045 to your computer and use it in GitHub Desktop.
.tmux.conf from ishikawa
set-option -g prefix C-a
setw -g mode-keys vi
# THEME
set -g status-bg black
set -g status-fg white
set -g status-interval 1
set -g status-left-length 100
set -g status-left '[#S:#I.#P]#[fg=green]#T#[default]'
set-option -g status-right-length 100
#set -g status-right '#[fg=colour166]%Y%m%d %H:%M:%S#[default]'
#set -g status-right '#(cut -d " " -f 1-3 /proc/loadavg)#[fg=green]#(ps -e -o cmd --sort pcpu | tail -n1 | cut -d" " -f1 | xargs basename) #(ps -e -o pid,pcpu,user,cputime --sort pcpu | tail -n1 | tr -s " " " ")#[fg=colour166]%d/%m %H:%M:%S#[default]'
set -g status-right "#(ps -eo pcpu,pid,user,args | sort -k 1 -n -r | head -n1 | awk '{print $1,$2,$3,$4}') #[fg=colour166]%Y%m%d %H:%M:%S#[default]"
set -g set-titles on
set -g set-titles-string '#H;#S:#I.#P #W #T'
set-window-option -g automatic-rename on
setw -g window-status-current-bg red
bind C-a last-window
bind | split-window -h
bind - split-window -v
bind m command-prompt -p "join pane from:" "join-pane -s '%%'"
#bind s command-prompt -p "send pane to:" "join-pane -t '%%'"
bind s choose-session
bind a send-prefix
#### 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 colour235 #base02
set-option -g pane-active-border-fg colour240 #base01
set-option -g pane-active-border-bg colour166
# 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
# mouse
#set -g mode-mouse on
#set -g mouse-select-pane on
#set-option -g mouse-select-window on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment