Skip to content

Instantly share code, notes, and snippets.

@jhsu
Created May 21, 2010 14:55
Show Gist options
  • Save jhsu/408933 to your computer and use it in GitHub Desktop.
Save jhsu/408933 to your computer and use it in GitHub Desktop.
# # Default global options.
set -g status-right "%H:%M" # %d-%b-%y
set -g bell-action none
# set -g lock-after-time 1800
# Default global window options.
setw -g remain-on-exit off
setw -g window-status-current-attr "underscore"
setw -g monitor-activity
set -g visual-activity on
setw -g window-status-current-bg blue
set -g history-limit 4000
# #setw -g xterm-keys on
#
# # Prefix key.
# set -g prefix C-a
# set -g prefix `
# unbind C-b
# bind ` send-prefix
# bind y setw force-width 81
# bind u setw force-width 0
# bind -n F1 run-shell 'mpc toggle >/dev/null 2>&1'
# bind -n F2 run-shell 'mpc'
# bind -n F3 run-shell 'mpc prev >/dev/null 2>&1'
# bind -n F4 run-shell 'mpc next >/dev/null 2>&1'
# bind -n F5 run-shell 'mpc volume -5 >/dev/null 2>&1'
# bind -n F6 run-shell 'mpc volume +5 >/dev/null 2>&1'
# # Hide and show window name from status line
bind '-' setw window-status-format '#I'\; setw window-status-current-format '#I'
bind '+' setw window-status-format '#H #I:#W#F'\; setw window-status-current-format '#H #I:#W#F'
# # First session.
# new -d -s0 -nirssi 'exec ssh -t natalya exec sh ~/bin/tmux-start'
# new -d -s0 -nirssi 'exec irssi-proxy-tunnel'
# setw -t0:0 monitor-activity on
# setw -t0:0 aggressive-resize on
# set -t0 status-bg green
# neww -d -nrvm 'exec rvmdir'
# setw -t0:1 aggressive-resize on
# neww -d -ntodo2 'exec emacs ~/TODO2'
# setw -t0:2 aggressive-resize on
# neww -d -nncmpc 'exec ncmpc -f ~/.ncmpc.conf'
# setw -t0:3 aggressive-resize on
# neww -d -nmutt 'exec mutt'
# setw -t0:4 aggressive-resize on
# neww -d
# neww -d
# neww -d
# neww -d
# neww -d
# neww -d
# neww -d
# neww -d
# neww -d
# neww -d
# neww -d
# neww -d
#
# ===============================================
# Pistos
# ===============================================
bind-key C-r source $HOME/.tmux.conf
set-option -g status-bg black
set-option -g status-fg white
setw -g utf8 on
setw -g mode-keys vi
setw -g automatic-rename off
bind-key C-a last-window
bind-key C-d detach-client
bind-key C-c new-window
bind-key C-p previous-window
bind-key C-n next-window
# bind-key ' ' next-window
# bind-key C-' ' next-window
unbind ','
bind A command-prompt "rename-window %%"
# unbind [
# bind Escape copy-mode
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind s split-window -v
bind v split-window -h
# move around panes with j and k, a bit like vim
# as of tmux 1.1, there is no way to move based on pane position (ie, no way to
# move the pane to the right)
bind j down-pane
bind k up-pane
# resize panes like vim
# feel free to change the "1" to however many lines you want to resize by, only
# one at a time can be slow
bind < resize-pane -L 2
bind > resize-pane -R 2
bind - resize-pane -D 2
bind + resize-pane -U 2
## 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
#
## 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"
#
## redisplay ^L l
#unbind ^L
#bind ^L refresh-client
#unbind l
#bind l refresh-client
#
#unbind |
#bind | split-window
#
# :kB: focus up
unbind Tab
bind Tab down-pane
unbind BTab
bind BTab up-pane
# " windowlist -b
unbind '"'
bind C-b choose-window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment