From 01d2f341efda3a25e2846b5326f1135c0c5a2d6d Mon Sep 17 00:00:00 2001 From: Akelge Date: Wed, 2 Jan 2013 14:50:18 +0000 Subject: [PATCH] Restored zshrc file --- zsh/zshrc | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 zsh/zshrc diff --git a/zsh/zshrc b/zsh/zshrc new file mode 100644 index 0000000..bb47ff2 --- /dev/null +++ b/zsh/zshrc @@ -0,0 +1,35 @@ +# /etc/zshrc: system-wide .zshrc file for zsh(1). +# +# This file is sourced only for interactive shells. It +# should contain commands to set up aliases, functions, +# options, key bindings, etc. +# +# Global Order: zshenv, zprofile, zshrc, zlogin +# +KERNEL=`uname -s` +LIBRARY="/etc/zsh.d" +KERNLIB="${LIBRARY}/${KERNEL}" + +function loadRC { + if [ -d $1 ]; then + for zshFile in $1/*[^~]; do + . $zshFile + done + fi + unset zshFile +} + +loadRC ${LIBRARY} +loadRC ${KERNLIB} + +unset KERNEL +unset LIBRARY +unset KERNLIB + +# Local (per Host) customizations +for localDir in /etc/zsh /etc /usr/local/etc /usr/local/etc/zsh; do + if [ -f ${localDir}/zshrc.local ]; then + . ${localDir}/zshrc.local + fi +done +unset localDir