getsolus / help-center-docs

Solus's Help Center documentation as well as previous User Guide.
https://help.getsol.us
GNU General Public License v2.0
57 stars 83 forks source link

ZSH packaging helper instructions don't work #576

Open EbonJaeger opened 1 month ago

EbonJaeger commented 1 month ago

Following the instructions here to install the Solus packaging helper functions does not result in the functions being usable.

I don't know the correct way to do it, not being familiar with ZSH. @Staudey has the following in his .zshrc file:

# This works
#for file in $HOME/.zshrc.d/*.zsh; do
#    . "$file"
#done

# This doesn't, why?
fpath=(~/.zshrc.d $fpath)
# Unless I add this and execute "solus-monorepo-helpers.zsh" first, which is weird
autoload -Uz solus-monorepo-helpers.zsh
solus-monorepo-helpers.zsh
# This also doesn't help:
# autoload -Uz ${fpath[1]}/*(:t)