]> arthur.barton.de Git - ax-zsh.git/blobdiff - core/80_local_config/80_local_config.zprofile
20_home: PATH is handled in 40_path
[ax-zsh.git] / core / 80_local_config / 80_local_config.zprofile
index 9a4703a3b6a80e067c680ab686984df759bb8259..e6a94308699e8344be477e9fdfc15c0def58e3d2 100644 (file)
@@ -1,5 +1,18 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # 80_local_config.zprofile: Read local configuration
 
-[[ -r "/var/lib/$HOST/zprofile" ]] \
-       && source "/var/lib/$HOST/zprofile"
+if [[ -r "$HOME/.zprofile.local" ]]; then
+       [[ -n "$AXZSH_DEBUG" ]] && echo "» $HOME/.zprofile.local:"
+       source "$HOME/.zprofile.local"
+       [[ -n "$AXZSH_DEBUG" ]] && echo "» $HOME/.zprofile.local (end)"
+fi
+
+if [[ -r "/var/lib/$HOST/zprofile" ]]; then
+       [[ -n "$AXZSH_DEBUG" ]] && echo "» /var/lib/$HOST/zprofile:"
+       source "/var/lib/$HOST/zprofile"
+       [[ -n "$AXZSH_DEBUG" ]] && echo "» /var/lib/$HOST/zprofile (end)"
+elif [[ -r "/var/lib/$HOST/profile" ]]; then
+       [[ -n "$AXZSH_DEBUG" ]] && echo "» /var/lib/$HOST/profile:"
+       source "/var/lib/$HOST/profile"
+       [[ -n "$AXZSH_DEBUG" ]] && echo "» /var/lib/$HOST/profile (end)"
+fi