Skip to content

Instantly share code, notes, and snippets.

@amyreese
Created April 12, 2013 17:45
Show Gist options
  • Save amyreese/5373794 to your computer and use it in GitHub Desktop.
Save amyreese/5373794 to your computer and use it in GitHub Desktop.
Screenrc vs tmux.conf
autodetach on
crlf off
startup_message off
shell -zsh
defmonitor on
activity "<%n>"
caption always "%{= dd}%{+b ky}%{+ .b} $LOGNAME@%H %{-} %{.y}%-w%50>%{+ Kg} %n %t %{-}%+w%<%{-}"
# 256 color support
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce on
term xterm
bind \ quit
# use ctrl-a
unbind C-b
set -g prefix C-a
bind-key a send-prefix
# command bindings
bind-key C-a last-window
bind-key C-c new-window
bind-key C-d detach
bind-key - split-window -v
bind-key | split-window -h
# kill ctrl-s
bind-key -n C-s show-options
# base configuration
set -g base-index 1
set -g bell-action none
set -g bell-on-alert off
set -g default-terminal "screen-256color"
set -g history-limit 5000
set -g status-interval 5
setw -g automatic-rename on
setw -g clock-mode-colour blue
setw -g clock-mode-style 12
setw -g mode-mouse copy-mode
setw -g monitor-activity on
# mouse support
set -g mouse-select-window on
set -g mouse-select-pane on
set -g mouse-resize-pane on
# theme
set -g status-justify left
set -g status-left " #h '#S' "
set -g status-left-length 12
set -g status-right "%F %l:%M%P %Z "
setw -g window-status-format "#I #W "
setw -g window-status-current-format "#[fg=colour118]#I #W#[default] "
set -g status-attr none
set -g status-bg colour234
set -g status-fg colour248
set -g status-left-attr none
set -g status-left-fg colour32
set -g status-left-bg default
set -g status-right-attr none
set -g status-right-fg colour32
set -g status-right-bg default
set -g message-attr none
set -g message-bg colour234
set -g message-fg colour208
set -g message-command-attr none
set -g message-command-bg colour234
set -g message-command-fg colour196
set -g pane-border-bg default
set -g pane-border-fg colour238
set -g pane-active-border-bg default
set -g pane-active-border-fg colour238
setw -g mode-attr none
setw -g mode-bg colour235
setw -g mode-fg colour208
setw -g window-status-activity-attr none
setw -g window-status-activity-bg default
setw -g window-status-activity-fg colour196
setw -g window-status-attr none
setw -g window-status-bg default
setw -g window-status-fg colour220
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment