Skip to content

Instantly share code, notes, and snippets.

@carsonmcdonald
Created September 12, 2012 02:36
Show Gist options
  • Save carsonmcdonald/3703887 to your computer and use it in GitHub Desktop.
Save carsonmcdonald/3703887 to your computer and use it in GitHub Desktop.
set -g default-terminal "screen-256color"
set -g history-limit 20000
# Set the prefix to ^A.
unbind C-b
set -g prefix ^A
bind a send-prefix
# Bind appropriate commands similar to screen.
# lockscreen ^X x
unbind ^X
bind ^X lock-server
unbind x
bind x lock-server
# screen ^C c
unbind ^C
bind ^C new-window
#bind c
#bind c new-window
# detach ^D d
unbind ^D
bind ^D detach
# displays *
unbind *
bind * list-clients
# next ^@ ^N sp n
unbind ^@
bind ^@ next-window
unbind ^N
bind ^N next-window
unbind " "
bind " " next-window
unbind n
bind n next-window
# title A
unbind A
bind A command-prompt "rename-window %%"
# other ^A
unbind ^A
bind ^A last-window
# prev ^H ^P p ^?
unbind ^H
bind ^H previous-window
unbind ^P
bind ^P previous-window
unbind p
bind p previous-window
unbind BSpace
bind BSpace previous-window
# windows ^W w
unbind ^W
bind ^W list-windows
unbind w
bind w list-windows
# quit \
unbind \
bind \ confirm-before "kill-server"
# kill K k
unbind K
bind K confirm-before "kill-window"
unbind k
bind k confirm-before "kill-window"
# redisplay ^L l
unbind ^L
bind ^L refresh-client
unbind l
bind l refresh-client
# More straight forward key bindings for splitting
unbind %
bind | split-window -h
bind v split-window -h
unbind '"'
bind - split-window -v
bind h split-window -v
# History
set -g history-limit 1000
# Pane
#unbind o
#bind C-s down-pane
# Terminal emulator window title
set -g set-titles on
set -g set-titles-string '#S:#I.#P #W'
# Status Bar
set -g status-bg black
set -g status-fg white
set -g status-interval 1
#set -g status-left '#[fg=green]#H#[default]'
#set -g status-right '#[fg=yellow]#(cut -d " " -f 1-4 /proc/loadavg)#[default] #[fg=cyan,bold]%Y-%m-%d %H:%M:%S#[default]'
# Notifying if other windows has activities
setw -g monitor-activity on
set -g visual-activity on
# Highlighting the active window in status bar
setw -g window-status-current-bg red
# Clock
setw -g clock-mode-colour green
setw -g clock-mode-style 24
# :kB: focus up
#unbind Tab
#bind Tab down-pane
#unbind BTab
#bind BTab up-pane
# " windowlist -b
unbind '"'
bind '"' choose-window
set -g status-bg black
set -g status-fg white
set -g status-interval 1
set -g status-right-length 90
set -g status-left ' '
set -g status-right '#(wifi-signal-strength) #(battery-life) (#(battery-time)) #[fg=yellow]%Y-%m-%d %H:%M#[default] '
set-window-option -g window-status-current-bg yellow
set-window-option -g window-status-current-fg black
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment