aboutsummaryrefslogtreecommitdiff
path: root/macos.local/flake/home/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'macos.local/flake/home/scripts')
-rw-r--r--macos.local/flake/home/scripts/backup-org.sh.org13
-rw-r--r--macos.local/flake/home/scripts/core.nix.org4
2 files changed, 17 insertions, 0 deletions
diff --git a/macos.local/flake/home/scripts/backup-org.sh.org b/macos.local/flake/home/scripts/backup-org.sh.org
new file mode 100644
index 0000000..9eb646a
--- /dev/null
+++ b/macos.local/flake/home/scripts/backup-org.sh.org
@@ -0,0 +1,13 @@
+#+title: Backup Org
+
+Backup my =~org= directory.
+#+begin_src sh
+ #!/bin/sh
+
+ dir="$(pwd)"
+ cd /Users/jjanzen/org/ || exit
+ git add -A
+ git commit -m 'backup'
+ git push
+ cd "$dir" || exit
+#+end_src
diff --git a/macos.local/flake/home/scripts/core.nix.org b/macos.local/flake/home/scripts/core.nix.org
index e53c38c..a791e83 100644
--- a/macos.local/flake/home/scripts/core.nix.org
+++ b/macos.local/flake/home/scripts/core.nix.org
@@ -18,6 +18,10 @@ Import various scripts useful on my system.
executable = true;
source = ./remove-quarantine;
};
+ "./.local/bin/backup-org.sh" = {
+ executable = true;
+ source = ./backup-org.sh;
+ };
};
}
#+end_src