diff --git a/zsh/zshrc b/zsh/zshrc index 10298e1..d3eab43 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -8,9 +8,11 @@ # # Determine zsh conf file position. On Debian/Ubuntu is /etc/zsh, on other should be /etc - +# [ -d /etc/zsh ] && BASE="/etc/zsh" || BASE="/etc" +[ -d ~/.zsh ] && BASE=~/.zsh + KERNEL=`uname -s` LIBRARY=${BASE}/zsh.d KERNLIB=${LIBRARY}/${KERNEL} @@ -27,7 +29,8 @@ function loadRC { fi # Add local customization file, svn ignored - if [ $EUID -eq 0 ]; then + # if [ $EUID -eq 0 ]; then + if [ -w $1 ]; then [ -f $1/99-local.zsh ] || echo "# Local customizations" > $1/99-local.zsh fi