Skip to content

Resetting the global PATH to its default value on Ubuntu #9429

Closed Answered by faho
SeSodesa asked this question in Q&A
Discussion options

You must be logged in to vote

How can I set the global PATH to the default value? Is it inherited form somewhere?

When your terminal starts fish, it passes on its environment, and that environment is then imported by fish as global variables.

Yes, adding the bin folder to the PATH in the first place was stupid, but here we are.

Where did you add it? If you added it to the global $PATH (with something like set -p PATH /path/to/the/thing), that wouldn't be stored anywhere.

You simply need to figure out how you added it, and then you need to undo it.

If you added it to $fish_user_paths, or indirectly via fish_add_path, you need to remove it from that. This is a universal variable (one that fish stores in its fish_var…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@SeSodesa
Comment options

@SeSodesa
Comment options

@SeSodesa
Comment options

@faho
Comment options

@SeSodesa
Comment options

Answer selected by SeSodesa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants