summaryrefslogtreecommitdiff
path: root/etc/.zshenv
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-03-28 13:52:49 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-03-28 13:52:49 +0200
commit19557bb66d4ccd6ee231dc154a1191c5f4ce2922 (patch)
tree27183114982d7420e5008b2bb7ac04b88b68a7ca /etc/.zshenv
parent8b78a3d6adbcef63e32a840e40be2719d4f5140b (diff)
Let caretaker automatically symlink the stuff
Diffstat (limited to 'etc/.zshenv')
-rw-r--r--etc/.zshenv26
1 files changed, 26 insertions, 0 deletions
diff --git a/etc/.zshenv b/etc/.zshenv
new file mode 100644
index 0000000..45c601b
--- /dev/null
+++ b/etc/.zshenv
@@ -0,0 +1,26 @@
+## vim:ft=zsh
+
+: ${ZDIR:=$HOME/packages/zsh/etc}
+PS4='%b%u%s%k%F{cyan}%N%F{default}:%F{yellow}%i%F{default}│'
+fpath=($ZDIR/functions $ZDIR/completions $fpath)
+
+# Additional zshenv settings from caretaker
+[[ -r $ZDIR/../provided/env ]] && source $ZDIR/../provided/env
+
+export EDITOR==vim
+export MPD_HOST=mpd
+export CALENDAR_DIR=$HOME/stuff
+export LESS='--silent --no-init --clear-screen --RAW-CONTROL-CHARS --quit-if-one-screen --ignore-case --tabs=5'
+
+# Required for various scripts
+export HOST
+export COLUMNS
+export LINES
+
+if [[ -n $commands[lesspipe] ]] {
+ export LESSOPEN='| lesspipe %s'
+ export LESSCLOSE='lesspipe %s %s'
+}
+
+# local settings, not tracked with git
+[[ -r $ZDIR/local-env ]] && source $ZDIR/local-env