docs(setup): persist the TinyTeX PATH in the shell profile on macOS (#609)

The TinyTeX snippet exports PATH for the current session only. A new terminal
window then fails with 'command not found: lualatex' although the install worked.
Add the persisted form and a one-line check.
This commit is contained in:
Mariano Gobea Alcoba authored and GitHub committed 2026-10-17 19:47:35 +02:00
1 parent a203bdd08f
commit 36771d03a8
1 file changed
+10
+10
View File
@@ -64,6 +64,16 @@ sh /tmp/tinytex-install-bin-unix.sh /tmp --no-path
export PATH="$HOME/Library/TinyTeX/bin/universal-darwin:$PATH"
```
The `export` above only lasts for the current terminal window. Persist it, or every new window reports `zsh: command not found: lualatex` (or `xelatex`) even though TinyTeX installed fine:
```bash
echo 'export PATH="$HOME/Library/TinyTeX/bin/universal-darwin:$PATH"' >> ~/.zshrc
source ~/.zshrc
lualatex --version # should print a version, not "command not found"
```
(Bash users: append to `~/.bash_profile` instead.)
Then install the template dependencies:
```bash