Skip to content

Instantly share code, notes, and snippets.

@phlipper
Created September 2, 2013 23:56
Show Gist options
  • Select an option

  • Save phlipper/6418314 to your computer and use it in GitHub Desktop.

Select an option

Save phlipper/6418314 to your computer and use it in GitHub Desktop.
~/.tmux.conf scratch files
# use capslock+a for the prefix key
set -g prefix C-a
# unbind initial prefix key to use later
unbind C-b
# more responsive default delay for vim
set -sg escape-time 1
# tmux-pasteboard
set-option -g default-command "/usr/local/bin/reattach-to-user-namespace zsh"
# '1' vs. '0' based index for windows
set -g base-index 1
set -g pane-base-index 1
# shortcut to reload tmux.conf
bind r source-file ~/.tmux.conf \; display "tmux is now hosed."
# send ctrl+a to running apps
bind C-a send-prefix
# shortcuts to split panes
bind | split-window -h
bind - split-window -v
# move between panes using vim navigation keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# move between windows using vim-style keys
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# resize panes using vim style keys
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# history
set -g history-limit 10000
bind -n C-k clear-history
# mouse mode training wheels
setw -g mode-mouse off
# ensure 256 color mode
set -g default-terminal "screen-256color"
# pass through xterm keys
set -g xterm-keys on
# colorize the status bar
#set -g status-fg white
#set -g status-bg black
# tmux-powerline
#set -g status-left "#(~/Projects/tmux-powerline/powerline.sh left)"
#set -g status-right "#(~/Projects/tmux-powerline/powerline.sh right)"
# colorize the window list
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
# colorize the active window
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
# colorize the pane dividers
#set -g pane-border-fg grey
#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
# customize the command line
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# customize the status bar
#set -g status-left-length 40
# set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P"
# set -g status-right "#[fg=cyan]%d %b %R"
set -g status-utf8 on
set -g status-interval 60
set -g status-justify centre
#set -g status-bg colour235
# identify activity in other windows
setw -g monitor-activity on
set -g visual-activity on
# color scheme (style based on vim-powerline)
set -g status-left-length 520
set -g status-right-length 451
set -g status-fg white
set -g status-bg colour234
#set -g window-status-activity-attr bold
#set -g pane-border-fg colour245
#set -g pane-active-border-fg colour46
#set -g message-fg colour16
#set -g message-bg colour221
#set -g message-attr bold
#set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(hostname -s) #[fg=colour238,bg=colour234,nobold]⮀'
#set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment