Skip to content

Instantly share code, notes, and snippets.

@Niemi
Created Nov 14, 2013
Embed
What would you like to do?
my dotfiles from vim, screen, tmux etc
startup_message off
vbell off
defutf8 on
nonblock on
# Window numbering starts at 1, not 0.
bind c screen 1
bind ^c screen 1
bind 0 select 10
screen 1
altscreen on
# Allow bold colors - necessary for some reason
attrcolor b ".I"
# Tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# Enables use of shift-PgUp and shift-PgDn
termcapinfo xterm|xterms|xs|rxvt ti@:te@
# Erase background with current bg color
defbce "on"
# Enable 256 color term
term xterm-256color
# Cache 30000 lines for scroll back
defscrollback 4096
# New mail notification
#backtick 101 30 15 $HOME/bin/mailstatus.sh
backtick 1 5 5 true
hardstatus alwayslastline
# Very nice tabbed colored hardstatus line
hardstatus string '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n %t%{= Kr}]%{= Kd}%+w %-= %{KG} %H%{KW}|%{KY}%101`%{KW}|%D %M %d %Y%{= Kc} %C%A%{-}'
caption splitonly "%{= wK}%-w%?%F%{= bw}%:%{= Wk}%? %n %t %{-}%+w %-= "
#caption always
# change command character from ctrl-a to ctrl-b (emacs users may want this)
#escape ^Bb
# Hide hardstatus: ctrl-a f
bind f eval "hardstatus ignore"
# Show hardstatus: ctrl-a F
bind F eval "hardstatus alwayslastline"
set-option -g status-utf8 on
set -g default-terminal "screen-256color"
set -g history-limit 10000
set -g base-index 1
setw -g utf8 on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# Set window notifications
setw -g monitor-activity on
set -g visual-activity on
# set -g terminal-overrides "*88col*:colors=88,*256col*:colors=256,xterm*:colors=256"
# xterm-style function key sequences
setw -g xterm-keys on
# clock
set-window-option -g clock-mode-colour cyan
set-window-option -g clock-mode-style 24
# window title
# enable wm window titles
set-option -g set-titles on
bind ^A select-pane -t :.+
###http://robots.thoughtbot.com/a-tmux-crash-course
###manual http://manoftoday.wikidot.com/tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment