zsh: rename zsh-functions to zsh-functions.zsh
This commit is contained in:
@@ -15,7 +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"
|
||||
ZSHRC_FUNCTIONS="$ZSH_CONFIG/zsh-functions.zsh"
|
||||
source "$ZSHRC_FUNCTIONS"
|
||||
|
||||
# Bootstrap: installs missing CLI tools and oh-my-zsh plugins across distros.
|
||||
@@ -151,7 +151,7 @@ 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" -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
|
||||
echo "Updating zsh-functions..."
|
||||
mv "$ftmp" "$ZSHRC_FUNCTIONS"
|
||||
|
||||
Reference in New Issue
Block a user