add silly little scripts
This commit is contained in:
parent
e616d19a15
commit
4a9e524f66
8 changed files with 397 additions and 1 deletions
19
scripts/niss-misc/nd/nd
Normal file
19
scripts/niss-misc/nd/nd
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/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 -D "" -E nixdir { find-parent -d flake.nix }
|
||||
ifelse { test $nixdir = "" } {
|
||||
foreground { echo "flake.nix not found in parents of ${cwd}" }
|
||||
exit 1
|
||||
}
|
||||
|
||||
cd $nixdir
|
||||
nix develop --no-warn-dirty $@ -c execlineb -c "cd ${cwd} ${shell}"
|
||||
|
||||
# vim: set ft=execline :
|
Loading…
Add table
Add a link
Reference in a new issue