You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fig sources ~/.fig/fig.sh in .profile, .bash_profile, .zprofile, .zshrc, .bashrc
If a fish user sources one of these files in their config.fish or something in their conf.d folder, this means ~/.fig/fig.sh is also sourced. But ~/.fig/fig.sh is invalid fish syntax and so throws a bunch of errors
e..g if statement is invalid, setting variables is wrong etc
Solution
At the start of ~/.fig/fig.sh, we need to check if the user is running fish and then not run the rest of the file if so
Fig sources
~/.fig/fig.shin .profile, .bash_profile, .zprofile, .zshrc, .bashrcIf a
fishuser sources one of these files in their config.fish or something in their conf.d folder, this means~/.fig/fig.shis also sourced. But~/.fig/fig.shis invalid fish syntax and so throws a bunch of errorse..g if statement is invalid, setting variables is wrong etc
Solution
At the start of
~/.fig/fig.sh, we need to check if the user is runningfishand then not run the rest of the file if so