]> arthur.barton.de Git - ax-zsh.git/commitdiff
80_local_config: Read local profile(s) in "ax-io" stage
authorAlexander Barton <alex@barton.de>
Sun, 12 Jul 2020 14:49:36 +0000 (16:49 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 12 Jul 2020 14:49:36 +0000 (16:49 +0200)
core/80_local_config/80_local_config.ax-io [new file with mode: 0644]
core/80_local_config/80_local_config.zprofile [deleted file]

diff --git a/core/80_local_config/80_local_config.ax-io b/core/80_local_config/80_local_config.ax-io
new file mode 100644 (file)
index 0000000..2d8989d
--- /dev/null
@@ -0,0 +1,18 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# 80_local_config.ax-io: Read local configuration
+
+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
diff --git a/core/80_local_config/80_local_config.zprofile b/core/80_local_config/80_local_config.zprofile
deleted file mode 100644 (file)
index e6a9430..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-# AX-ZSH: Alex' Modular ZSH Configuration
-# 80_local_config.zprofile: Read local configuration
-
-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