diff zshrc-linux-gnu @ 0:8b245298349a

zsh environment - initial import
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 28 Nov 2011 12:36:49 +0100
parents
children 2cd74a85976a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zshrc-linux-gnu	Mon Nov 28 12:36:49 2011 +0100
@@ -0,0 +1,19 @@
+#
+# zshrc-linux-gnu: zsh env for various linux distributions
+#
+
+# custom environment variables
+export LESS="-X"
+PROMPT="%m%# "
+
+# try to guess the distribution and include a special script for that
+local linux_distro="unknown"
+if [ -d /usr/portage ]; then
+    linux_distro="gentoo"
+fi
+
+# now source the distro zshrc file if it exists
+local distro_zshrc=$HOME/.zsh-env/zshrc-${linux_distro}
+if [ -r "${distro_zshrc}" ]; then
+    . ${distro_zshrc}
+fi