Update 1 file: functions.zsh
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user