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

Fish shows error messages if user sources .profile, .bash_profile etc in their config.fish #7

Description

@brendanfalk

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions