Skip to content

Fix installer PATH setup for fish and other shells - #79

Open
catwinee wants to merge 1 commit into
gpu-mode:mainfrom
catwinee:fix/install-path-non-bash-shells
Open

Fix installer PATH setup for fish and other shells#79
catwinee wants to merge 1 commit into
gpu-mode:mainfrom
catwinee:fix/install-path-non-bash-shells

Conversation

@catwinee

@catwinee catwinee commented Aug 21, 2026

Copy link
Copy Markdown

Summary

  • curl | bash always sets BASH_VERSION, so the installer wrote export PATH=... into .bashrc even when the user's login shell was fish/zsh/nushell. Detect $SHELL instead and write a matching snippet (fish_add_path for fish, Nushell env.nu, csh setenv, etc.).
  • Skip rewriting the rc file if $HOME/.local/bin is already present, so re-running the installer no longer duplicates PATH lines.
  • Document the fish reload path in the README troubleshooting notes.

Test plan

  • On a fish machine, run curl ... | bash (or bash install.sh) and confirm it appends fish_add_path "$HOME/.local/bin" to ~/.config/fish/config.fish, not export PATH to .bashrc
  • source ~/.config/fish/config.fish (or open a new fish session) then command -v popcorn-cli succeeds
  • Re-run the installer and confirm the fish config is not duplicated
  • bash/zsh still get export PATH="$HOME/.local/bin:$PATH" in .bashrc / .zshrc

curl | bash always sets BASH_VERSION, so fish and other non-bash users got a bash export written to the wrong rc file. Write a shell-specific snippet instead and skip duplicates on reinstall.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant