From 47f3320e241d45884f3e1f177e7987d83c3ebfb0 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Tue, 24 Jun 2014 22:59:23 +0200 Subject: zshrc --- .tmux.CLuster.conf | 36 ++++++++++++++++++++++++++++++++++++ .tmux.cluster.conf | 36 ------------------------------------ .zshrc | 15 ++++++--------- 3 files changed, 42 insertions(+), 45 deletions(-) create mode 100644 .tmux.CLuster.conf delete mode 100644 .tmux.cluster.conf 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/.tmux.cluster.conf b/.tmux.cluster.conf deleted file mode 100644 index 6364e4e..0000000 --- a/.tmux.cluster.conf +++ /dev/null @@ -1,36 +0,0 @@ -# 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 cb00614..17946ad 100644 --- a/.zshrc +++ b/.zshrc @@ -15,7 +15,6 @@ zstyle ':completion:*' menu select setopt completealiases compdef mosh=ssh zstyle '*' hosts # do not use /etc/hosts -#setopt multios setopt no_multios ex () { @@ -37,7 +36,7 @@ ex () { esac else echo "'$1' is not a file!" - fi + fi } umask 0077 @@ -70,27 +69,24 @@ autoload -U colors && colors case `hostname` in 2pac*) HOSTCOLOR=green - alias tmux='TERM=screen-256color tmux -f ~/.tmux.2pac.conf' ;; CLuster) HOSTCOLOR=cyan - alias tmux='TERM=screen-256color tmux -f ~/.tmux.cluster.conf' ;; coltrane*) HOSTCOLOR=blue - alias tmux='TERM=screen-256color tmux -f ~/.tmux.coltrane.conf' ;; donna*) HOSTCOLOR=red - alias tmux='TERM=screen-256color tmux -f ~/.tmux.donna.conf' ;; vicious*) HOSTCOLOR=yellow - alias tmux='TERM=screen-256color tmux -f ~/.tmux.vicious.conf' ;; x) HOSTCOLOR=magenta - alias tmux='TERM=screen-256color tmux' + ;; + *) + HOSTCOLOR=white ;; esac @@ -100,7 +96,8 @@ case `hostname` in export GEM_PATH=/toolbox/ruby 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 + export JAVA_HOME=/usr/lib/jvm/java-6-sun/ # debian systems w/ sun-java6 + alias tmux="TERM=screen-256color tmux -f ~/.tmux.`hostname`.conf" PROMPT="[%m:%~]%{$fg[$HOSTCOLOR]%}%B%%%b%{$reset_color%} " ;; x) -- cgit v1.2.3