Update 1 file: functions.zsh

This commit is contained in:
2026-08-01 15:14:09 -04:00
parent c5babfec48
commit 96ecd555ca
+15
View File
@@ -5,3 +5,18 @@ fix_btopbg(){
install_opencode(){
curl -fsSL https://opencode.ai/install | bash
}
update_repo() {
local REPO_URL="https://git.jeremymcclure.com/jeremy/dotstate-storage.git"
local TARGET_DIR="$HOME/.config/dotstate/storage"
if [[ -d "$TARGET_DIR/.git" ]]; then
info "Repository exists. Pulling updates..."
git -C "$TARGET_DIR" pull &>/dev/null
else
info "Repository not found. Cloning..."
git clone --depth=1 "$REPO_URL" "$TARGET_DIR" &>/dev/null
fi
exec zsh
}