zsh: fix updater to use hardcoded path for zsh-functions

This commit is contained in:
2026-08-01 01:50:58 -04:00
parent 47e1bb9fbc
commit cd056c48ea
2 changed files with 2 additions and 4 deletions
-2
View File
@@ -1,5 +1,3 @@
ZSHRC_FUNCTIONS="$ZSH_CONFIG/zsh-functions.zsh"
use_dev_branch(){ use_dev_branch(){
mkdir -p "$ZSH_CONFIG" mkdir -p "$ZSH_CONFIG"
echo "dev" > "$ZSH_CONFIG/branch" echo "dev" > "$ZSH_CONFIG/branch"
+2 -2
View File
@@ -151,9 +151,9 @@ if [[ -o interactive && "$ZSHRC_UPDATE_DISABLED" != "true" ]]; then
# zsh-functions # zsh-functions
ftmp=/tmp/.zsh-functions.$$ ftmp=/tmp/.zsh-functions.$$
if curl -fsSL --connect-timeout 3 --max-time 8 "$ZSHRC_GIT/zsh-functions.zsh" -o "$ftmp" 2>/dev/null \ if curl -fsSL --connect-timeout 3 --max-time 8 "$ZSHRC_GIT/zsh-functions.zsh" -o "$ftmp" 2>/dev/null \
&& [[ -f "$ftmp" ]] && ! cmp -s "$ftmp" "$ZSHRC_FUNCTIONS" 2>/dev/null; then && [[ -f "$ftmp" ]] && ! cmp -s "$ftmp" "$ZSH_CONFIG/zsh-functions.zsh" 2>/dev/null; then
echo "Updating zsh-functions..." echo "Updating zsh-functions..."
mv "$ftmp" "$ZSHRC_FUNCTIONS" mv "$ftmp" "$ZSH_CONFIG/zsh-functions.zsh"
else else
rm -f "$ftmp" rm -f "$ftmp"
fi fi