Skip to content

Commit

Permalink
Make direnv more compatible (#54)
Browse files Browse the repository at this point in the history
## Description of changes

<!-- What changes did you make -->
Direnv now checks if you have nix installed before trying to load the
env.
It also checks if you are using nushell and will use the toolkit

## Relevant Issues
- should supersede #50
  • Loading branch information
IogaMaster committed Oct 2, 2023
1 parent d2dba45 commit 4d57849
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4d57849

Please sign in to comment.