This commit is contained in:
Sage Vaillancourt 2024-09-23 08:41:47 -04:00
commit da0351e640
2 changed files with 19 additions and 10 deletions

21
copy.sh
View File

@ -130,17 +130,18 @@ if ! test -f "$HOME/.local/share/fonts/FiraCodeNerdFontMono-Medium.ttf"; then
fc-cache -f -v
fi
curdir="$(pwd)"
cd $SCRIPT_DIR || exit 1
if test -d git-mirror-machine; then
cd git-mirror-machine
git pull
else
git clone 'https://git.sagev.space/sage/git-mirror-machine.git'
cd git-mirror-machine
if [[ "$(hostname)" != "sage-bigboy" ]]; then
curdir="$(pwd)"
cd $SCRIPT_DIR || exit 1
if test -d git-mirror-machine; then
cd git-mirror-machine
git pull
else
git clone 'https://git.sagev.space/sage/git-mirror-machine.git'
cd git-mirror-machine
fi
cd "$curdir" || exit 1
fi
./mirror.sh
cd "$curdir" || exit 1
if ! command -v fzf &> /dev/null; then
echo "You may wish to install fzf for sofi and other search"

View File

@ -257,6 +257,10 @@ function _pushdot {
git push -u origin main
fi
fi
if [[ "$(hostname)" == "sage-bigboy" ]]; then
cd - > /dev/null
return $res
fi
push-extensions | tee -a "$SYNC_LOCK_FILE"
sync-history | tee -a "$SYNC_LOCK_FILE"
push-dconf | tee -a "$SYNC_LOCK_FILE"
@ -297,6 +301,10 @@ function _getdot {
fi
cd "$DOT_DIR" || return 1
git pull && ./copy.sh | tee -a "$SYNC_LOCK_FILE"
if [[ "$(hostname)" == "sage-bigboy" ]]; then
cd - > /dev/null
return
fi
sync-history | tee -a "$SYNC_LOCK_FILE"
load-extensions | tee -a "$SYNC_LOCK_FILE"