organise some of these scripts into subfolders
- ID
183e5f3- date
2023-01-01 20:01:36+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
bce046d- message
organise some of these scripts into subfolders- changed files
Changed files
README.md (1024) → README.md (1617)
diff --git a/README.md b/README.md
index c7ae48b..d48a239 100644
--- a/README.md
+++ b/README.md
@@ -24,3 +24,19 @@ Individual scripts have header comments explaining what they do.
Download them and add them to your PATH.
You can also clone this entire repo, then add it to your PATH, if you want to use all the scripts.
+
+For example, I have the following code in [my fishconfig](https://github.com/alexwlchan/fishconfig/blob/main/config.fish#L5-L22):
+
+```shell
+set --global --export PATH $PATH \
+ ~/repos/pathscripts \
+ ~/repos/pathscripts/aws \
+ ~/repos/pathscripts/git \
+ ~/repos/pathscripts/terraform
+```
+
+## Organisation
+
+Because the names are somewhat inscrutable to anyone but me (e.g. `gp` or `tfi` are meaningless), I've grouped them into a couple of top-level folders.
+
+I add all the subfolders to my PATH so I don't need to remember how they're organised, but it might make it easier to find stuff!
_ensure_aws_credentials_are_fresh (1118) → aws/_ensure_aws_credentials_are_fresh (1118)
diff --git a/_ensure_aws_credentials_are_fresh b/aws/_ensure_aws_credentials_are_fresh
similarity index 100%
rename from _ensure_aws_credentials_are_fresh
rename to aws/_ensure_aws_credentials_are_fresh
bulk_sns_publish (2036) → aws/bulk_sns_publish (2036)
diff --git a/bulk_sns_publish b/aws/bulk_sns_publish
similarity index 100%
rename from bulk_sns_publish
rename to aws/bulk_sns_publish
login_ecr_public (236) → aws/login_ecr_public (236)
diff --git a/login_ecr_public b/aws/login_ecr_public
similarity index 100%
rename from login_ecr_public
rename to aws/login_ecr_public
sqs_stats (2486) → aws/sqs_stats (2486)
diff --git a/sqs_stats b/aws/sqs_stats
similarity index 100%
rename from sqs_stats
rename to aws/sqs_stats
ssh_to_archivematica (1682) → aws/ssh_to_archivematica (1682)
diff --git a/ssh_to_archivematica b/aws/ssh_to_archivematica
similarity index 100%
rename from ssh_to_archivematica
rename to aws/ssh_to_archivematica
gcb (167) → git/gcb (179)
diff --git a/gcb b/git/gcb
similarity index 66%
rename from gcb
rename to git/gcb
index 65451e4..b783e8a 100755
--- a/gcb
+++ b/git/gcb
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-# Get the name of the current branch
-# http://stackoverflow.com/a/12142066/1558022
+# Get the name of the current branch in Git
+# See https://stackoverflow.com/a/12142066/1558022
set -o errexit
set -o nounset
gf (257) → git/gf (257)
diff --git a/gf b/git/gf
similarity index 100%
rename from gf
rename to git/gf
github-clone (1452) → git/github-clone (1452)
diff --git a/github-clone b/git/github-clone
similarity index 100%
rename from github-clone
rename to git/github-clone
gitstats (1194) → git/gitstats (1194)
diff --git a/gitstats b/git/gitstats
similarity index 100%
rename from gitstats
rename to git/gitstats
gp (263) → git/gp (263)
diff --git a/gp b/git/gp
similarity index 100%
rename from gp
rename to git/gp
gup (570) → git/gup (570)
diff --git a/gup b/git/gup
similarity index 100%
rename from gup
rename to git/gup
tfa (1554) → terraform/tfa (1554)
diff --git a/tfa b/terraform/tfa
similarity index 100%
rename from tfa
rename to terraform/tfa
tfi (618) → terraform/tfi (618)
diff --git a/tfi b/terraform/tfi
similarity index 100%
rename from tfi
rename to terraform/tfi
tfp (627) → terraform/tfp (627)
diff --git a/tfp b/terraform/tfp
similarity index 100%
rename from tfp
rename to terraform/tfp