From eebbc2f5cb7271573c6fe16b2247778dd8b365a7 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Mon, 23 Jun 2014 21:14:59 +0200 Subject: fix --- .tmux.2pac.conf | 36 ++++++++++++++++++++++++++++++++++++ .tmux.cluster.conf | 36 ++++++++++++++++++++++++++++++++++++ .zshrc | 13 +++++++++++-- 3 files changed, 83 insertions(+), 2 deletions(-) create mode 100644 .tmux.2pac.conf create mode 100644 .tmux.cluster.conf diff --git a/.tmux.2pac.conf b/.tmux.2pac.conf new file mode 100644 index 0000000..31e6f78 --- /dev/null +++ b/.tmux.2pac.conf @@ -0,0 +1,36 @@ +# act like vim +setw -g mode-keys vi +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R +bind-key -r C-h select-window -t :- +bind-key -r C-l select-window -t :+ + +# act like GNU screen +unbind C-b +set -g prefix C-a + +# look good +set -g default-terminal "screen-256color" + +# status +set -g status-left-length 32 +set -g status-right-length 150 +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 green +set -g message-fg colour16 +set -g message-bg colour221 +set -g message-attr bold +set -g status-left '' +set -g status-right '#[underline]#[fg=colour235,bg=colour46,bold] #H:#S' +set-option -g set-titles on +set -g set-titles-string '#T -- #W' +set-window-option -g automatic-rename on +set-option -g status-interval 1 +set-option -g status-utf8 on +set-window-option -g utf8 on + diff --git a/.tmux.cluster.conf b/.tmux.cluster.conf new file mode 100644 index 0000000..6364e4e --- /dev/null +++ b/.tmux.cluster.conf @@ -0,0 +1,36 @@ +# act like vim +setw -g mode-keys vi +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R +bind-key -r C-h select-window -t :- +bind-key -r C-l select-window -t :+ + +# act like GNU screen +unbind C-b +set -g prefix C-a + +# look good +set -g default-terminal "screen-256color" + +# status +set -g status-left-length 32 +set -g status-right-length 150 +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 cyan +set -g message-fg colour16 +set -g message-bg colour221 +set -g message-attr bold +set -g status-left '' +set -g status-right '#[underline]#[fg=colour235,bg=colour14,bold] #H:#S' +set-option -g set-titles on +set -g set-titles-string '#T -- #W' +set-window-option -g automatic-rename on +set-option -g status-interval 1 +set-option -g status-utf8 on +set-window-option -g utf8 on + diff --git a/.zshrc b/.zshrc index 778b84f..575192c 100644 --- a/.zshrc +++ b/.zshrc @@ -74,6 +74,12 @@ case `hostname` in export GEM_HOME=/toolbox/ruby/ export GEM_PATH=$HOME/lib/ruby ;; + CLuster) + HOSTCOLOR=cyan + alias tmux='TERM=screen-256color tmux -f ~/.tmux.cluster.conf' + export GEM_HOME=/toolbox/ruby/ + export GEM_PATH=$HOME/lib/ruby + ;; donna*) HOSTCOLOR=red alias tmux='TERM=screen-256color tmux -f ~/.tmux.donna.conf' @@ -88,6 +94,7 @@ case `hostname` in ;; 2pac*) HOSTCOLOR=green + alias tmux='TERM=screen-256color tmux -f ~/.tmux.vicious.conf' export GEM_HOME=$HOME/lib/ruby/ export GEM_PATH=/toolbox/ruby ;; @@ -100,7 +107,7 @@ case `hostname` in esac case `hostname` in - coltrane*|donna*|vicious*) + 2pac*|CLuster|coltrane*|donna*|vicious*) export PYTHONPATH=$PYTHONPATH:/toolbox/python/lib/python2.7/site-packages export PATH=~/vim/bin:/toolbox/scripts:/opt/java/bin/:/toolbox/ruby/bin/:$PATH export JAVA_HOME=/usr/lib/jvm/java-6-sun/ # debian systems @@ -170,7 +177,9 @@ alias gem="gem20" alias quotes='curl -s "http://download.finance.yahoo.com/d/quotes.csv?s=AAPL+AMD+GOOG&f=l1"' alias irb='pry' alias watch_d='while true; do clear; ps ax | grep -P "\sD\+?\s"; sleep 5; done' -source ~/.zshrcp +if [[ -f ~/.zshrcp ]]; then + source ~/.zshrcp +fi bindkey -v bindkey '^R' history-incremental-search-backward -- cgit v1.2.3