Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
789adf6365
|
||
|
|
cd056c48ea
|
||
|
|
47e1bb9fbc
|
@@ -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"
|
||||
[[ -f "$ZSH_CONFIG/zsh-functions.zsh" ]] && 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
|
||||
@@ -152,9 +151,9 @@ if [[ -o interactive && "$ZSHRC_UPDATE_DISABLED" != "true" ]]; then
|
||||
# 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 \
|
||||
&& [[ -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..."
|
||||
mv "$ftmp" "$ZSHRC_FUNCTIONS"
|
||||
mv "$ftmp" "$ZSH_CONFIG/zsh-functions.zsh"
|
||||
else
|
||||
rm -f "$ftmp"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user