From 2e8413c168fe97c22494a61702459e834cb0bc17 Mon Sep 17 00:00:00 2001 From: Louis Lacoste Date: Fri, 28 Apr 2023 14:38:40 +0200 Subject: [PATCH] Adding Nix --- .bash_profile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index ba14dfd..ced61d2 100644 --- a/.bash_profile +++ b/.bash_profile @@ -36,4 +36,13 @@ fi if [ -d "/usr/local/go" ]; then PATH="$PATH:/usr/local/go/bin" fi -. "$HOME/.cargo/env" + +if [ -d "$HOME/.cargo" ]; then + . "$HOME/.cargo/env" +fi + +if [ -e /home/polarolouis/.nix-profile/etc/profile.d/nix.sh ]; then + . /home/polarolouis/.nix-profile/etc/profile.d/nix.sh; + export XDG_DATA_DIRS=$HOME/.nix-profile/share:$HOME/.share:"${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}" +fi # added by Nix installer +