Update 1 file: functions.zsh

This commit is contained in:
2026-08-05 04:29:07 -04:00
parent 56e8fa6aa3
commit 0dde8f0c7d
+1 -1
View File
@@ -22,8 +22,8 @@ install-omp(){
whence omp >/dev/null && unset -f install-omp whence omp >/dev/null && unset -f install-omp
dotstate-update() { dotstate-update() {
local REPO_URL="https://go.jeremy-web.space/zshrc-git"
local TARGET_DIR="$HOME/.config/dotstate/storage" local TARGET_DIR="$HOME/.config/dotstate/storage"
local REPO_URL="$(git -C "$TARGET_DIR" remote get-url origin)"
[[ "$(id -u)" -ne "$(stat -c '%u' "$TARGET_DIR" 2>/dev/null)" ]] && return 0 [[ "$(id -u)" -ne "$(stat -c '%u' "$TARGET_DIR" 2>/dev/null)" ]] && return 0
[[ ! -d "$TARGET_DIR/.git" ]] && return 0 [[ ! -d "$TARGET_DIR/.git" ]] && return 0