Permalink
Browse files

Finally, a proper tmux config

  • Loading branch information...
1 parent d46fcb5 commit 0353379f1b41477e13d9536d6bff4a290991eaa6 @gf3 committed Sep 6, 2012
Showing with 63 additions and 19 deletions.
  1. +1 −3 .aliases
  2. +62 −16 .tmux.conf
View
@@ -5,9 +5,6 @@ alias ....='cd ../../..'
alias ~='cd ~'
alias ll='tree --dirsfirst -ChFupDaLg 1'
-# Navigate to root of git repository
-alias ..g='git rev-parse && cd "$(git rev-parse --show-cdup)"'
-
# Utilities
alias a="ack -ia"
alias b="bundle exec"
@@ -22,6 +19,7 @@ alias ip="curl -s http://checkip.dyndns.com/ | sed 's/[^0-9\.]//g'"
alias localip="ipconfig getifaddr en1"
alias mp="mvim -p"
alias rkt="racket -il xrepl"
+alias tmux="tmux -2"
alias view="vim -p -R"
alias vp="vim -p"
View
@@ -1,14 +1,34 @@
-# Change prefix key to §
-#unbind C-b
-#set -g prefix §
+# Remap prefix to Control + a
+# set -g prefix §
+set -g prefix C-a
+unbind C-b
+bind C-a send-prefix
+
+# Force a reload of the config file
+unbind r
+bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
+
+# Relax!
+set -sg escape-time 0
+set -sg repeat-time 600
+
+# Mouse
+set -g mode-mouse on
+setw -g mouse-select-window on
+setw -g mouse-select-pane on
+
+# Less stretching to get to the first item.
+set -g base-index 1
+setw -g pane-base-index 1
+
+# Quick pane cycling
+unbind ^A
+bind ^A select-pane -t :.+
# Use Vi mode
-set -g mode-keys vi
+setw -g mode-keys vi
set -g status-keys vi
-# Make mouse useful in copy mode
-setw -g mode-mouse on
-
# More straight forward key bindings for splitting
unbind %
bind | split-window -h
@@ -21,17 +41,43 @@ bind v split-window -v
set -g set-titles on
set -g set-titles-string '#S:#I.#P #W'
-# 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
-
# UTF8
-set -g utf8 on
set -g status-utf8 on
# Terminal junks!
set -g default-terminal "screen-256color"
-set -g terminal-overrides "*88col*:colors=88,*256col*:colors=256"
+
+# Bad Wolf
+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 colour39
+set -g message-fg colour16
+set -g message-bg colour221
+set -g message-attr bold
+
+# Custom status bar
+# Powerline symbols: ⮂ ⮃ ⮀ ⮁ ⭤
+set -g status-left-length 32
+set -g status-right-length 150
+set -g status-interval 5
+
+set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour238,nobold]⮀#[fg=colour15,bg=colour238,bold] #I.#P #[fg=colour238,bg=colour234,nobold]⮀'
+
+set -g status-right '#[fg=colour245]⮃ #(date +"%a") %d %b %R #[fg=colour237]⮂#[fg=colour247,bg=colour237]#(uptime | cut -d "," -f 3- | cut -d ":" -f2) ⮂#[fg=colour16,bg=colour247,bold] #h '
+
+set -g window-status-format "#[fg=white,bg=colour234] #I #W "
+set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour16,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
+
+# Activity
+setw -g monitor-activity on
+set -g visual-activity on
+
+# Autorename sanely.
+setw -g automatic-rename on
+
+# Better name management
+bind c new-window
+bind , command-prompt "rename-window '%%'"
+

0 comments on commit 0353379

Please sign in to comment.