aboutsummaryrefslogtreecommitdiff
path: root/update-home.sh
diff options
context:
space:
mode:
authorJacob Janzen <jjanzenn@proton.me>2024-08-07 15:17:27 -0500
committerJacob Janzen <jjanzenn@proton.me>2024-08-07 15:17:27 -0500
commit4f6d8ff6c4cf5a2036c180dd0c7ccb1eedd39f5f (patch)
tree29732f4454fab896300146c9d8ea2beaea542e80 /update-home.sh
parent8a64f31f035db096f8a4a578d6b461fad4dac244 (diff)
rename update-home script
Diffstat (limited to 'update-home.sh')
-rwxr-xr-xupdate-home.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/update-home.sh b/update-home.sh
deleted file mode 100755
index 03b39a4..0000000
--- a/update-home.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-# install the dotfiles source if it is not present
-if ! test -d ~/.dotfiles; then
- echo Installing dotfiles...
- git clone git@git.sr.ht:~jjanzen/.dotfiles ~/.dotfiles
-fi
-
-if ! diff ~/.dotfiles/update-home ~/.local/bin/update-home; then
- cp ~/.dotfiles/update-home ~/.local/bin/update-home || exit 1
- echo Changes have been made to the update-home script.
- echo Running the new update-home script.
- ~/.local/bin/update-home
- exit
-fi
-
-# save the current working directory and move to the dotfiles repository
-CWD=$(pwd)
-cd ~/.dotfiles || exit
-git stash
-git checkout main
-git pull --rebase
-
-find -- * -type f -name "*.org" | while read -r file; do
- echo Installing "${file}" configuration...
- # emacs --batch "${file}" -f package-initialize --eval '(org-babel-tangle)'
-done
-
-cd "${CWD}" || exit