Skip to content
Source
Sign inSign up
TanStack/source

Install script adds src to PATH only for $SHELL, so other shells cannot find it #102

Closedfuko opened this issue 0 comments
fukocommented

Problem

The install script (curl -fsSL https://source.tanstack.com/install | sh) adds ~/.source/bin to PATH in one rc file only, picked from $SHELL (add_to_path in apps/web/src/routes/install.ts).

When a person's login shell differs from the shell their tools run, src is not found. Coding agents often run commands in another shell than the login shell, so the agent cannot run src right after the install and the agent setup.

Steps to reproduce

  1. On Linux (seen on Pop!_OS), have fish as the login shell ($SHELL is fish), with zsh also installed and used by tools (for example Claude Code runs its commands in zsh).
  2. Run the install script.
  3. It writes set -gx PATH "$HOME/.source/bin" $PATH to ~/.config/fish/config.fish only.
  4. In zsh or bash: src gives command not found: src. ~/.zshrc and ~/.bashrc have no line for ~/.source/bin.

Expected

src runs in every shell the person uses, so an agent can use it right after the install.

Possible fix

In add_to_path, also add the line to the rc file of each other shell that is installed or already has an rc file (~/.zshrc, ~/.bashrc, ~/.config/fish/config.fish), not only the one of $SHELL. Keep the check that skips a file that already has the line. Print each file it changed.

Agents could also be told in the source skill (references/setup.md) to try ~/.source/bin/src when src is not found.

  1. tanstack-source added labelsbug

Sign in to join this conversation.