Skip to content

Commit

Permalink
fixup! bugfix: correct helper setup docs for bash and zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
TraceyC77 committed Dec 31, 2024
1 parent 53c431e commit af64a76
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/packaging/prepare-for-packaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<eos >>! ~/.testrc
fpath=(\$HOME/.zshrc.d \$fpath)

Check warning on line 152 in docs/packaging/prepare-for-packaging.md

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (testrc)
autoload -U \$HOME/.zshrc.d/*
source \$HOME/.zshrc.d/solus-monorepo-helpers.zsh

Check warning on line 154 in docs/packaging/prepare-for-packaging.md

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (autoload)
eos

source ~/.zshrc
```

Expand All @@ -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

Check warning on line 172 in docs/packaging/prepare-for-packaging.md

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (autoload)
```

Verify that `$fpath` contains the needed directory with:
Expand Down

0 comments on commit af64a76

Please sign in to comment.