bashrc: source home-manager session variables only on non-NixOS distros
This commit is contained in:
parent
7b8a8cbe7b
commit
c8da353ded
6
.bashrc
6
.bashrc
|
@ -38,6 +38,12 @@ if [[ "$(uname -s)" == 'Linux' ]]; then
|
|||
alias pbcopy='wl-copy'
|
||||
fi
|
||||
|
||||
# source the vars only if we are not on NixOS
|
||||
if ! grep 'ID=nixos' /etc/os-release > /dev/null; then
|
||||
[[ -f "${HOME}/.nix-profile/etc/profile.d/hm-session-vars.sh" ]] && \
|
||||
"${HOME}/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
fi
|
||||
|
||||
elif [[ "$(uname -s)" == 'Darwin' ]]; then
|
||||
GNU_LS="$(command -v gls)"
|
||||
GNU_GREP="$(command -v ggrep)"
|
||||
|
|
Loading…
Reference in New Issue