Skip to content

Instantly share code, notes, and snippets.

@lenage
Created November 3, 2012 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lenage/4007675 to your computer and use it in GitHub Desktop.
Save lenage/4007675 to your computer and use it in GitHub Desktop.
My tmux conf
set -g default-terminal "screen-256color"
set -g history-limit 20000
# use VI
set-window-option -g mode-keys e
# Use ctrl-a instead of ctrl-b
set -g prefix C-a
unbind C-b
bind C-a send-prefix
unbind C-f
bind C-f command-prompt "switch-client -t %%"
# kill
unbind k
bind k confirm-before "kill-window"
unbind ^x
bind ^x kill-pane
# reload config
unbind r
bind r source-file ~/.tmux.conf
#unbind ^W
#bind ^W split-window -p 25 '$EDITOR $(cat ~/.current-project)' \; swap-pane -D
unbind ^T
bind ^T split-window -p 25
# horizontal and vertical splits
unbind |
bind | split-window -h
unbind _
bind _ split-window
# tile all windows
unbind =
bind = select-layout tiled
# " windowlist -b
unbind '"'
bind '"' choose-window
# cycle through panes
unbind ^A
bind ^A select-pane -t :.+
unbind Right
bind Right resize-pane -R 8
unbind Left
bind Left resize-pane -L 8
unbind Up
bind Up resize-pane -U 3
unbind Down
bind Down resize-pane -D 4
unbind h
bind h select-pane -L
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind l
bind l select-pane -R
# status bar
#
#THEME from https://gist.github.com/1689941#file_.tmux.conf
set -g status-bg '#fdf6e3'
set -g status-fg '#586e75'
set -g status-left-length 30
set -g status-right-length 60
set -g status-left ' #[default]'
set -g status-right '#(battery-life) (#(battery-time)) #[fg=yellow]%Y-%m-%d %H:%M %a#[default] '
setw -g window-status-format '#[fg=colour235]#I #[fg=white]#W#[default] '
setw -g window-status-current-format '🚴 #W '
@lenage
Copy link
Author

lenage commented Nov 16, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment