mirror of https://github.com/akelge/zsh
Made it work even from ~/.zsh
This commit is contained in:
parent
4ba7d2b2b2
commit
02063b266b
|
@ -8,9 +8,11 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# Determine zsh conf file position. On Debian/Ubuntu is /etc/zsh, on other should be /etc
|
# 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 /etc/zsh ] && BASE="/etc/zsh" || BASE="/etc"
|
||||||
|
|
||||||
|
[ -d ~/.zsh ] && BASE=~/.zsh
|
||||||
|
|
||||||
KERNEL=`uname -s`
|
KERNEL=`uname -s`
|
||||||
LIBRARY=${BASE}/zsh.d
|
LIBRARY=${BASE}/zsh.d
|
||||||
KERNLIB=${LIBRARY}/${KERNEL}
|
KERNLIB=${LIBRARY}/${KERNEL}
|
||||||
|
@ -27,7 +29,8 @@ function loadRC {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add local customization file, svn ignored
|
# 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
|
[ -f $1/99-local.zsh ] || echo "# Local customizations" > $1/99-local.zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue