summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc59
1 files changed, 55 insertions, 4 deletions
diff --git a/.zshrc b/.zshrc
index 5c49683..778b84f 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,8 +1,13 @@
+if [[ ! "$TERM" == "screen-256color" ]]; then
+ TERM="xterm-256color" #hack
+fi
+
zstyle ':completion:*' completer _complete _ignored
-zstyle :compinstall filename '/home/pks/.zshrc'
+zstyle :compinstall filename '~/.zshrc'
autoload -Uz compinit promptinit
compinit
promptinit
+zstyle ':completion:*' completer _complete _ignored
HISTFILE=~/.zshistory
HISTSIZE=1000
SAVEHIST=1000
@@ -10,7 +15,8 @@ zstyle ':completion:*' menu select
setopt completealiases
compdef mosh=ssh
zstyle '*' hosts # do not use /etc/hosts
-setopt multios
+#setopt multios
+setopt no_multios
ex () {
if [ -f $1 ] ; then
@@ -46,6 +52,8 @@ export LANGUAGE=en_US.UTF-8
export GEM_HOME=$HOME/lib/ruby/
export TERM=rxvt-256color
export PYTHONPATH=$PYTHONPATH:~/lib/python/
+export CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -Wall"
+export CXXFLAGS="$CFLAGS"
case $TERM in
*rxvt*|xterm*)
@@ -59,7 +67,49 @@ case $TERM in
esac
autoload -U colors && colors
-PROMPT="[%~]%{$fg[magenta]%}$B%%%b%{$reset_color%} "
+case `hostname` in
+ coltrane*)
+ HOSTCOLOR=blue
+ alias tmux='TERM=screen-256color tmux -f ~/.tmux.coltrane.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'
+ export GEM_HOME=/toolbox/ruby/
+ export GEM_PATH=$HOME/lib/ruby
+ ;;
+ vicious*)
+ HOSTCOLOR=yellow
+ alias tmux='TERM=screen-256color tmux -f ~/.tmux.vicious.conf'
+ export GEM_HOME=/toolbox/ruby/
+ export GEM_PATH=$HOME/lib/ruby
+ ;;
+ 2pac*)
+ HOSTCOLOR=green
+ export GEM_HOME=$HOME/lib/ruby/
+ export GEM_PATH=/toolbox/ruby
+ ;;
+ x)
+ HOSTCOLOR=magenta
+ ;;
+ *)
+ alias tmux='TERM=screen-256color tmux'
+ ;;
+esac
+
+case `hostname` in
+ 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
+ PROMPT="[%m:%~]%{$fg[$HOSTCOLOR]%}%B%%%b%{$reset_color%} "
+ ;;
+ *)
+ PROMPT="[%~]%{$fg[magenta]%}$B%%%b%{$reset_color%} "
+ ;;
+esac
function youtube() { mplayer -xy 0.5 $(youtube-dl -g "$@") ;}
@@ -77,7 +127,7 @@ alias py='bpython'
alias grep='grep --color=auto'
alias equery='sudo equery -N'
alias feh='feh -F'
-alias gitweb='git instaweb'
+alias gitweb='git instaweb --httpd webrick'
alias gitwebstop='git instaweb stop'
alias netcfg='sudo netcfg'
alias mergepdf='texexec --pdfarrange --noduplex --result merged.pdf '
@@ -119,6 +169,7 @@ alias irb="irb20"
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
bindkey -v