summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-06-23 21:14:59 +0200
committerPatrick Simianer <p@simianer.de>2014-06-23 21:14:59 +0200
commiteebbc2f5cb7271573c6fe16b2247778dd8b365a7 (patch)
tree880078d6154c79ddb3cb6dc23f5bc2604bf2fb81
parent064bed33c88c25f3538a4c80a6c2740c88d10464 (diff)
fix
-rw-r--r--.tmux.2pac.conf36
-rw-r--r--.tmux.cluster.conf36
-rw-r--r--.zshrc13
3 files changed, 83 insertions, 2 deletions
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