From 1e32251506c1813001ad1f44f878676b0219fd1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Rustad?= Date: Mon, 29 Nov 2010 23:03:12 +0100 Subject: [PATCH] Add zshrc from cassarossa --- zshrc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 zshrc diff --git a/zshrc b/zshrc new file mode 100644 index 0000000..4dfbe58 --- /dev/null +++ b/zshrc @@ -0,0 +1,34 @@ +# The following lines were added by compinstall + +zstyle ':completion:*' completer _complete _ignored +zstyle ':completion:*' list-colors '' +zstyle ':completion:*' verbose true +zstyle :compinstall filename '/home/cassarossa/itk/bjornrus/.zshrc' + +autoload -Uz compinit +compinit +# End of lines added by compinstall +# Lines configured by zsh-newuser-install +HISTFILE=~/.histfile +HISTSIZE=9000 +SAVEHIST=9000 +bindkey -e + +alias ls='ls --color=auto' +alias ll='ls -la' + +# Nice prompt +COLOR=`echo -n '\e[1;32m'` +for host in `hostname -f` `hostname`; do + case $host in +# loki.samfundet.no) COLOR=`echo -n '\e[1;34m'` ;; +# varulf.samfundet.no) COLOR=`echo -n '\e[1;34m'` ;; + *.samfundet.no) COLOR=`echo -n '\e[1;33m'` ;; + *.uninett.no) COLOR=`echo -n '\e[1;35m'` ;; + esac +done +PROMPT=`echo %j '%(!.%{\e[1;31m%}%n.%{\e[1;30m%}%n)%{\e[0;37m%}@%{'${COLOR}'%}%m%{\e[m%}:%{\e[1;33m%}%30<..<%~%{\e[m%}%(!.#.>) '` + +export EDITOR=vim + +# End of lines configured by zsh-newuser-install -- 2.47.3