Author: Kyle Fuller <inbox@kylefuller.co.uk> 2014-02-11 17:48:08 +0000 +0000
Committer: Kyle Fuller <inbox@kylefuller.co.uk> 2014-02-11 17:48:08 +0000 +0000
Commit: 4e545bb78cb1049180d9b61ec3cb2936d3521380
Parent: 4dac3fff03f6321b94dcd829388ffee4f94649c5
shells: Set a sane PS1
diff --git a/.rc b/.rc
index 699be9890272a6b48100709fa606345e99da1d20..d64ee3cab2ac64a4c03e7ad5436512b81216c278 100644
--- a/.rc
+++ b/.rc
@@ -1,7 +1,15 @@
# vim: set syntax=sh ts=2 sw=2 et:
+if [[ $0 == "zsh" ]]; then
+ autoload -U colors && colors
+ export PS1="%{$fg[red]%}$ %{$reset_color%}%"
+else
+ export PS1="\e[0;31m$\e[0m "
+fi
+
export EDITOR=vim
export LSCOLORS=Gxfxcxdxbxegedabagacad
+alias ls='ls -G'
openx () {
# http://orta.github.io/rebase/on/opening-xcode-projects-and-workspaces/