]> arthur.barton.de Git - ax-zsh.git/commitdiff
Read /var/lib/$HOST/profile when no /var/lib/$HOST/zprofile exists
authorAlexander Barton <alex@barton.de>
Wed, 17 Aug 2016 21:01:53 +0000 (23:01 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 17 Aug 2016 21:01:53 +0000 (23:01 +0200)
core/80_local_config/80_local_config.zprofile

index d956c0d7730048e8d8414e466648b5f32d938647..cb8ca1431ba9dd28288bcd6b75c7291a6a8cb94f 100644 (file)
@@ -11,4 +11,8 @@ if [[ -r "/var/lib/$HOST/zprofile" ]]; then
        [[ -f "$HOME/.axzsh.debug" ]] && echo "» /var/lib/$HOST/zprofile:"
        source "/var/lib/$HOST/zprofile"
        [[ -f "$HOME/.axzsh.debug" ]] && echo "» /var/lib/$HOST/zprofile (end)"
+elif [[ -r "/var/lib/$HOST/profile" ]]; then
+       [[ -f "$HOME/.axzsh.debug" ]] && echo "» /var/lib/$HOST/profile:"
+       source "/var/lib/$HOST/profile"
+       [[ -f "$HOME/.axzsh.debug" ]] && echo "» /var/lib/$HOST/profile (end)"
 fi