Skip to content

Commit

Permalink
Fix zgen update order for the update script
Browse files Browse the repository at this point in the history
  • Loading branch information
AgenttiX committed Jul 10, 2024
1 parent 522109a commit 76b3036
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions zsh/custom/utils.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,6 @@ update() {
flatpak update
flatpak uninstall --unused
fi
if (command -v zgen &> /dev/null); then
echo "Updating zgen"
zgen update
fi

# Git repositories
local PWD_BEFORE_UPDATE="${PWD}"
Expand All @@ -197,6 +193,13 @@ update() {
fi
cd "${PWD_BEFORE_UPDATE}"

# This should be after the Git repo pulling,
# since the repos can have an updated zsh config.
if (command -v zgen &> /dev/null); then
echo "Updating zgen"
zgen update
fi

# zsh completions using zsh-manpage-completion-generator
# Based on:
# https://gitlab.com/drjaska-projects/configs/zsh/-/blob/master/.zshrc
Expand All @@ -216,7 +219,7 @@ update() {
./zsh-manpage-completion-generator
cd "${PWD_BEFORE_UPDATE}"

# You disable the completions for specific commands by deleting the files here.
# You can disable the completions for specific commands by deleting the files here.
# rm "${FISH_COMPLETION_DIR}/_git*"
else
echo "Please install fish for zsh-manpage-completion-generator" > /dev/stderr
Expand Down

0 comments on commit 76b3036

Please sign in to comment.