misc/bin/nd

16 lines
294 B
Text
Raw Normal View History

2022-05-20 06:34:51 -04:00
#!/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 :