|
@@ -40,12 +40,19 @@ fi
|
|
unset os
|
|
unset os
|
|
|
|
|
|
# sourcing config files
|
|
# sourcing config files
|
|
-for f in $DOTZSHDIR/config.d/*.zsh; do
|
|
|
|
|
|
+for f in $DOTZSHDIR/config.d/*.zsh ; do
|
|
if [ -r "$f" ]; then
|
|
if [ -r "$f" ]; then
|
|
source $f
|
|
source $f
|
|
fi
|
|
fi
|
|
done
|
|
done
|
|
|
|
|
|
|
|
+# sourcing externals plugins
|
|
|
|
+for d in $DOTZSHDIR/externals.d/*; do
|
|
|
|
+ if [ -f "$d/${d##*/}.zsh" ]; then
|
|
|
|
+ source "$d/${d##*/}.zsh"
|
|
|
|
+ fi
|
|
|
|
+done
|
|
|
|
+
|
|
# using 'sudo zsh'
|
|
# using 'sudo zsh'
|
|
if [ "$SUDO_USER" -a "$UID" = 0 ]; then
|
|
if [ "$SUDO_USER" -a "$UID" = 0 ]; then
|
|
# define root history path
|
|
# define root history path
|