Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Automatically set fig settings pty.path without user intervention + make sure it's stable #8

Open
brendanfalk opened this issue Jun 5, 2021 · 0 comments

Comments

@brendanfalk
Copy link
Member

A lot of user's path variables are set incorrectly. They have to manually run fig settings pty.path "$PATH"

This is stupid and a waste of everyone's time.

We should make sure the $PATH variable in the pseudo terminal is always correct. Ideally, we don't want to be updating it too frequently as this is fragile and stuff could break.

Some ideas:

  1. Prompt the user to run something once after their shell has loaded
  2. Make 100% sure that Fig is the very very last thing sourced (probably hard to ensure and enforce)
  3. Do it on fig source, fig update, or fig [something else] - maybe, but too frequent and this is fragile...
  4. Work out a way of spawning a shell process in the user's selected shell, then getting all the env variables like we did last time... But investigate this and make it work properly.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant