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,
|
||||
# pull otherwise (ff only)
|
||||
PULL_DIRS=(
|
||||
"$HOME/.emacs.d/"
|
||||
"${XDG_CONFIG_HOME:-$HOME/.config}/home-manager"
|
||||
)
|
||||
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
|
||||
# Clone ~/.emacs.d/ if it doesn't exist
|
||||
EMACS_DIR="$HOME/.emacs.d/"
|
||||
if [ ! -d "$EMACS_DIR" ]; then
|
||||
git clone "https://git.xenia.me.uk/pixelifytica/emacs.git" "$EMACS_DIR"
|
||||
fi
|
||||
|
||||
# Sync common directories, setting url to ensure it's up-to-date first
|
||||
SYNC_DIRS=(
|
||||
|
@ -29,12 +10,14 @@ SYNC_DIRS=(
|
|||
"$HOME/Documents/org/"
|
||||
"$HOME/Documents/library/"
|
||||
"$HOME/Documents/notebooks/"
|
||||
"$HOME/Documents/presentations/"
|
||||
)
|
||||
SYNC_URLS=(
|
||||
"https://git.xenia.me.uk/pixelifytica/pass.git"
|
||||
"https://git.xenia.me.uk/pixelifytica/org.git"
|
||||
"https://git.xenia.me.uk/pixelifytica/library.git"
|
||||
"git@git.ccfe.ac.uk:elitherl/notebooks.git"
|
||||
"git@git.ccfe.ac.uk:elitherl/presentations.git"
|
||||
)
|
||||
|
||||
for i in "${!SYNC_DIRS[@]}"; do
|
||||
|
|
Loading…
Reference in a new issue