mirror of
https://github.com/materusPL/nixos-config
synced 2026-06-24 17:36:41 +00:00
common: zprofile load home-manager profile.d
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
__HOME_ZPROFILE_SOURCED=1
|
__HOME_ZPROFILE_SOURCED=1
|
||||||
[[ -f "/etc/profile" ]] && emulate sh -c "source /etc/profile"
|
[[ -f "/etc/profile" ]] && emulate sh -c "source /etc/profile"
|
||||||
|
|
||||||
|
if [[ -d ~/.nix-profile/etc/profile.d ]]; then
|
||||||
|
for file in ~/.nix-profile/etc/profile.d/*; do
|
||||||
|
[ -f "$file" ] && [ -r "$file" ] && emulate sh -c "source \"$file\""
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
[[ -f "~/.profile" ]] && emulate sh -c "source ~/.profile"
|
[[ -f "~/.profile" ]] && emulate sh -c "source ~/.profile"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user