zsh: move ZSHRC_FUNCTIONS var to functions file

This commit is contained in:
2026-08-01 01:47:48 -04:00
parent 3ed624436a
commit 47e1bb9fbc
2 changed files with 3 additions and 2 deletions
+2
View File
@@ -1,3 +1,5 @@
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"
+1 -2
View File
@@ -15,8 +15,7 @@ export ZSHRC_BOOTSTRAP="$ZSH_CONFIG/.bootstrapped"
[[ -d "$HOME/AppImages" ]] && path+=("$HOME/AppImages") [[ -d "$HOME/AppImages" ]] && path+=("$HOME/AppImages")
[[ -d "$HOME/.opencode/bin" ]] && path+=("$HOME/.opencode/bin") [[ -d "$HOME/.opencode/bin" ]] && path+=("$HOME/.opencode/bin")
ZSHRC_FUNCTIONS="$ZSH_CONFIG/zsh-functions.zsh" source "$ZSH_CONFIG/zsh-functions.zsh"
source "$ZSHRC_FUNCTIONS"
# Bootstrap: installs missing CLI tools and oh-my-zsh plugins across distros. # 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 if [[ ! -f "$ZSHRC_BOOTSTRAP" || "$(cat "$ZSHRC_BOOTSTRAP" 2>/dev/null)" != "$ZSHRC_BOOTSTRAP_VERSION" || "$BOOTSTRAP" == "true" ]]; then