about summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/install-all12
-rwxr-xr-xbin/redo2
2 files changed, 14 insertions, 0 deletions
diff --git a/bin/install-all b/bin/install-all
new file mode 100755
index 0000000..13d9c74
--- /dev/null
+++ b/bin/install-all
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ ! -f nix-portable ]; then
+  curl -LO https://github.com/DavHau/nix-portable/releases/download/v008/nix-portable
+  chmod +x nix-portable
+
+  ./nix-portable nix-channel --add https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-21.05-small.tar.gz nixos
+  ./nix-portable nix-channel --update
+  ./nix-portable nix-shell -p cachix --run "cachix use pn"
+fi
+
+NP_MINIMAL=1 ./nix-portable nix-shell
diff --git a/bin/redo b/bin/redo
index 0c76a18..708a9b2 100755
--- a/bin/redo
+++ b/bin/redo
@@ -12,6 +12,8 @@
 # Overflow oder eine Format String Vulnerability zwischen die anderen
 # Codezeilen und schreibe das auch nicht dran.
 
+export PATH="$(dirname $(readlink -f $0)):$PATH"
+
 : \
  "${REDO_JOBS_MAX:=1}" \
  "${REDO_MKDIR:=$(command -v mkdir)}" \