Install the git-sync script directly from the upstream repository
This commit is contained in:
parent
3ab55ee128
commit
cb1435a7e0
4 changed files with 24 additions and 0 deletions
3
.config/setup/06-install-git-sync.sh
Executable file
3
.config/setup/06-install-git-sync.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#! /usr/bin/sh
|
||||||
|
|
||||||
|
resync-git-sync
|
||||||
10
.local/bin/resync-git-sync
Executable file
10
.local/bin/resync-git-sync
Executable file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#! /usr/bin/sh
|
||||||
|
|
||||||
|
REPO_DIR="$(systemd-path user-state-private)"/git-sync
|
||||||
|
if [ -d "${REPO_DIR}" ]
|
||||||
|
then
|
||||||
|
git -C "${REPO_DIR}" pull
|
||||||
|
else
|
||||||
|
cd "$(systemd-path user-state-private)" || exit
|
||||||
|
git clone https://github.com/simonthum/git-sync
|
||||||
|
fi
|
||||||
|
|
@ -20,7 +20,13 @@ pipx_update() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
git_sync_update() {
|
||||||
|
echo Updating git-sync...
|
||||||
|
resync-git-sync
|
||||||
|
}
|
||||||
|
|
||||||
apt_update
|
apt_update
|
||||||
pipx_update
|
pipx_update
|
||||||
cargo_update
|
cargo_update
|
||||||
ghup
|
ghup
|
||||||
|
git_sync_update
|
||||||
|
|
|
||||||
5
.profile
5
.profile
|
|
@ -30,6 +30,11 @@ if [ -d "$HOME/.local/bin" ] ; then
|
||||||
PATH="$HOME/.local/bin:$PATH"
|
PATH="$HOME/.local/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install the git-sync script
|
||||||
|
if [ -d "$(systemd-path user-state-private)"/git-sync ] ; then
|
||||||
|
PATH="$(systemd-path user-state-private)/git-sync:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
umask 0007
|
umask 0007
|
||||||
export EDITOR="/usr/local/bin/emacs --no-init-file --no-splash --no-window-system"
|
export EDITOR="/usr/local/bin/emacs --no-init-file --no-splash --no-window-system"
|
||||||
export VISUAL="/usr/local/bin/emacs --no-init-file --no-splash --no-window-system"
|
export VISUAL="/usr/local/bin/emacs --no-init-file --no-splash --no-window-system"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue