diff --git a/.envrc b/.envrc index 3550a30..664e752 100644 --- a/.envrc +++ b/.envrc @@ -1 +1,11 @@ -use flake +# If nix is installed hook into it. +if [ $(which nix) ] +then + use flake +fi + +# If nu is the current shell use toolkit.nu +if [ $(echo $SHELL) == $(which nu) ] +then + nu -e "use toolkit.nu" +fi