diff --git a/pages/index.md b/pages/index.md index 55dc468..e07875f 100644 --- a/pages/index.md +++ b/pages/index.md @@ -1,3 +1,5 @@ # Dominic Dang Software engineer + +edit diff --git a/scripts/nix/nix.sh b/scripts/nix/nix-shell.sh similarity index 51% rename from scripts/nix/nix.sh rename to scripts/nix/nix-shell.sh index be585f9..d30f8fd 100755 --- a/scripts/nix/nix.sh +++ b/scripts/nix/nix-shell.sh @@ -1,4 +1,7 @@ #!/usr/bin/env nix-shell #!nix-shell -i bash --packages dotnet-sdk_7 +### ensure our context is always the repo home +cd $(dirname "$0") +cd ../../ nix develop diff --git a/scripts/nix/retype.sh b/scripts/nix/retype.sh deleted file mode 100755 index 08bfcc4..0000000 --- a/scripts/nix/retype.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -i bash --packages dotnet-sdk_7 - -dotnet tool run retype $@ diff --git a/scripts/nix/serve.sh b/scripts/nix/serve.sh index 95f2ebc..b2cb933 100755 --- a/scripts/nix/serve.sh +++ b/scripts/nix/serve.sh @@ -1,4 +1,7 @@ #!/usr/bin/env nix-shell #!nix-shell -i bash --packages dotnet-sdk_7 +### ensure our context is always the repo home +cd $(dirname "$0") +cd ../../ dotnet tool run retype start diff --git a/scripts/nix/watch.sh b/scripts/nix/watch.sh deleted file mode 100755 index 559742f..0000000 --- a/scripts/nix/watch.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -i bash --packages dotnet-sdk_7 - -dotnet tool run retype build -w diff --git a/scripts/readme.md b/scripts/readme.md index 04f6f02..9bfc267 100644 --- a/scripts/readme.md +++ b/scripts/readme.md @@ -1,5 +1,6 @@ # ./scripts +This folder contains convenience scripts for editing this repo locally. Folder with convenience folders for operating on this repo. Both with scripts using the nix package manager and non-nix based installs. diff --git a/scripts/nix/retype.yml b/scripts/retype.yml similarity index 100% rename from scripts/nix/retype.yml rename to scripts/retype.yml diff --git a/scripts/sh/build.sh b/scripts/sh/build.sh deleted file mode 100755 index 40c0fa6..0000000 --- a/scripts/sh/build.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env -S bash -x - -### retype start -dotnet tool run retype build diff --git a/scripts/sh/nix.sh b/scripts/sh/nix.sh deleted file mode 100755 index d2c9caf..0000000 --- a/scripts/sh/nix.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env -S bash -x - -nix develop diff --git a/scripts/sh/retype.sh b/scripts/sh/retype.sh deleted file mode 100755 index 02a1b68..0000000 --- a/scripts/sh/retype.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env -S bash -x - -### retype start -dotnet tool run retype $@ diff --git a/scripts/sh/serve.sh b/scripts/sh/serve.sh index 5e52cd0..41295eb 100755 --- a/scripts/sh/serve.sh +++ b/scripts/sh/serve.sh @@ -1,4 +1,6 @@ -#!/usr/bin/env -S bash -x +#!/usr/bin/env bash -### retype start +### ensure our context is always the repo home +cd $(dirname "$0") +cd ../../ dotnet tool run retype start diff --git a/scripts/sh/watch.sh b/scripts/sh/watch.sh deleted file mode 100755 index ba95047..0000000 --- a/scripts/sh/watch.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env -S bash -x - -### retype start -dotnet tool run retype build -w