From 47e1bb9fbcd2efe32af94287ff2c8a887611ec0d Mon Sep 17 00:00:00 2001 From: Jeremy McClure Date: Sat, 1 Aug 2026 01:47:48 -0400 Subject: [PATCH] zsh: move ZSHRC_FUNCTIONS var to functions file --- zsh/zsh-functions.zsh | 2 ++ zsh/zshrc | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/zsh/zsh-functions.zsh b/zsh/zsh-functions.zsh index b891f85..bfa3217 100644 --- a/zsh/zsh-functions.zsh +++ b/zsh/zsh-functions.zsh @@ -1,3 +1,5 @@ +ZSHRC_FUNCTIONS="$ZSH_CONFIG/zsh-functions.zsh" + use_dev_branch(){ mkdir -p "$ZSH_CONFIG" echo "dev" > "$ZSH_CONFIG/branch" diff --git a/zsh/zshrc b/zsh/zshrc index d3076c0..35043b8 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -15,8 +15,7 @@ export ZSHRC_BOOTSTRAP="$ZSH_CONFIG/.bootstrapped" [[ -d "$HOME/AppImages" ]] && path+=("$HOME/AppImages") [[ -d "$HOME/.opencode/bin" ]] && path+=("$HOME/.opencode/bin") -ZSHRC_FUNCTIONS="$ZSH_CONFIG/zsh-functions.zsh" -source "$ZSHRC_FUNCTIONS" +source "$ZSH_CONFIG/zsh-functions.zsh" # Bootstrap: installs missing CLI tools and oh-my-zsh plugins across distros. if [[ ! -f "$ZSHRC_BOOTSTRAP" || "$(cat "$ZSHRC_BOOTSTRAP" 2>/dev/null)" != "$ZSHRC_BOOTSTRAP_VERSION" || "$BOOTSTRAP" == "true" ]]; then