Remove home-manager from git-sync-all, add presentations
This commit is contained in:
parent
763a1d2a05
commit
f53fdbad4c
|
@ -1,27 +1,8 @@
|
||||||
# Clone ~/.emacs.d/ and ~/.config/home-manager if then don't exist,
|
# Clone ~/.emacs.d/ if it doesn't exist
|
||||||
# pull otherwise (ff only)
|
EMACS_DIR="$HOME/.emacs.d/"
|
||||||
PULL_DIRS=(
|
if [ ! -d "$EMACS_DIR" ]; then
|
||||||
"$HOME/.emacs.d/"
|
git clone "https://git.xenia.me.uk/pixelifytica/emacs.git" "$EMACS_DIR"
|
||||||
"${XDG_CONFIG_HOME:-$HOME/.config}/home-manager"
|
fi
|
||||||
)
|
|
||||||
PULL_URLS=(
|
|
||||||
"https://git.xenia.me.uk/pixelifytica/emacs.git"
|
|
||||||
"https://git.xenia.me.uk/pixelifytica/home-manager.git"
|
|
||||||
)
|
|
||||||
for i in "${!PULL_DIRS[@]}"; do
|
|
||||||
DIRECTORY="${PULL_DIRS[$i]}"
|
|
||||||
URL="${PULL_URLS[$i]}"
|
|
||||||
echo "--- $DIRECTORY ---"
|
|
||||||
if [ ! -d "$DIRECTORY" ]; then
|
|
||||||
git clone "$URL" "$DIRECTORY"
|
|
||||||
fi
|
|
||||||
(
|
|
||||||
cd "$DIRECTORY" || exit
|
|
||||||
git remote set-url origin "$URL"
|
|
||||||
git pull --ff --ff-only
|
|
||||||
git status --porcelain
|
|
||||||
)
|
|
||||||
done
|
|
||||||
|
|
||||||
# Sync common directories, setting url to ensure it's up-to-date first
|
# Sync common directories, setting url to ensure it's up-to-date first
|
||||||
SYNC_DIRS=(
|
SYNC_DIRS=(
|
||||||
|
@ -29,12 +10,14 @@ SYNC_DIRS=(
|
||||||
"$HOME/Documents/org/"
|
"$HOME/Documents/org/"
|
||||||
"$HOME/Documents/library/"
|
"$HOME/Documents/library/"
|
||||||
"$HOME/Documents/notebooks/"
|
"$HOME/Documents/notebooks/"
|
||||||
|
"$HOME/Documents/presentations/"
|
||||||
)
|
)
|
||||||
SYNC_URLS=(
|
SYNC_URLS=(
|
||||||
"https://git.xenia.me.uk/pixelifytica/pass.git"
|
"https://git.xenia.me.uk/pixelifytica/pass.git"
|
||||||
"https://git.xenia.me.uk/pixelifytica/org.git"
|
"https://git.xenia.me.uk/pixelifytica/org.git"
|
||||||
"https://git.xenia.me.uk/pixelifytica/library.git"
|
"https://git.xenia.me.uk/pixelifytica/library.git"
|
||||||
"git@git.ccfe.ac.uk:elitherl/notebooks.git"
|
"git@git.ccfe.ac.uk:elitherl/notebooks.git"
|
||||||
|
"git@git.ccfe.ac.uk:elitherl/presentations.git"
|
||||||
)
|
)
|
||||||
|
|
||||||
for i in "${!SYNC_DIRS[@]}"; do
|
for i in "${!SYNC_DIRS[@]}"; do
|
||||||
|
|
Loading…
Reference in a new issue