From af64a76df0c5105a589ef643b6a6391ff330c033 Mon Sep 17 00:00:00 2001 From: Tracey Clark Date: Tue, 31 Dec 2024 17:40:51 -0600 Subject: [PATCH] fixup! bugfix: correct helper setup docs for bash and zsh --- docs/packaging/prepare-for-packaging.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/packaging/prepare-for-packaging.md b/docs/packaging/prepare-for-packaging.md index 33b7faa96..b00e90df4 100644 --- a/docs/packaging/prepare-for-packaging.md +++ b/docs/packaging/prepare-for-packaging.md @@ -141,15 +141,20 @@ ln -s ~/solus-packages/common/Scripts/helpers.fish ~/.config/fish/conf.d/solus.f :::note -If you already have a customized `.zshrc` or config for `zsh`, you'll need to adapt these commands or edit your config by hand +If you already have a customized `.zshrc` or config for `zsh`, you'll need to adapt these commands or edit your config by hand (e.g. instead of using the `cat` command) ::: ```bash mkdir -p ~/.zshrc.d chmod 700 ~/.zshrc.d -printf "\nfpath=(~/.zshrc.d \$fpath)" >> ~/.zshrc -ln -s ~/solus-packages/common/Scripts/helpers.zsh ~/.zshrc.d/solus-monorepo-helpers.zsh +cat <>! ~/.testrc +fpath=(\$HOME/.zshrc.d \$fpath) +autoload -U \$HOME/.zshrc.d/* +source \$HOME/.zshrc.d/solus-monorepo-helpers.zsh + +eos + source ~/.zshrc ``` @@ -164,6 +169,7 @@ You may have more than what is shown here if you have customized things ```bash fpath=($HOME/.zshrc.d $fpath) autoload -U $HOME/.zshrc.d/* +source $HOME/.zshrc.d/solus-monorepo-helpers.zsh ``` Verify that `$fpath` contains the needed directory with: