]> git.rustad.me Git - dotfiles/commitdiff
Add zshrc from cassarossa
authorBjørn Rustad <bjornrus@samfundet.no>
Mon, 29 Nov 2010 22:03:12 +0000 (23:03 +0100)
committerBjørn Rustad <bjornrus@samfundet.no>
Mon, 29 Nov 2010 22:03:12 +0000 (23:03 +0100)
zshrc [new file with mode: 0644]

diff --git a/zshrc b/zshrc
new file mode 100644 (file)
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