This commit is contained in:
rhiannon morris 2022-05-20 12:34:51 +02:00
parent 8f688f4105
commit 0838af3d18
1 changed files with 15 additions and 0 deletions

15
bin/nd Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env execlineb
importas -D /bin/bash default_shell SHELL
elgetopt s
importas -D $default_shell shell ELGETOPT_s
elgetpositionals
getcwd -E cwd
backtick -E nixdir { find-parent -d flake.nix }
cd $nixdir
nix develop $@ -c execlineb -c "cd ${cwd} ${shell}"
# vim: set ft=execline :