From 24ed1e1e952716d06d994f383d7e92661cf362a9 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Wed, 7 Aug 2024 15:23:16 -0500 Subject: name update-home install in the repo --- update-home | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100755 update-home (limited to 'update-home') diff --git a/update-home b/update-home deleted file mode 100755 index 0e6fd8f..0000000 --- a/update-home +++ /dev/null @@ -1,31 +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 - -# save the current working directory and move to the dotfiles repository -CWD=$(pwd) -cd ~/.dotfiles || exit -git stash -git checkout main -git pull --rebase - -# Install new update-home script and run it instead of this -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 - -# install config files -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 -- cgit v1.2.3