zsh: guard source of zsh-functions against missing file
This commit is contained in:
@@ -15,7 +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")
|
||||||
|
|
||||||
source "$ZSH_CONFIG/zsh-functions.zsh"
|
[[ -f "$ZSH_CONFIG/zsh-functions.zsh" ]] && source "$ZSH_CONFIG/zsh-functions.zsh"
|
||||||
|
|
||||||
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user