-
So I am in a bit of a (not so) funny situation with my global I would modify the global variable, except I have no idea where this global How can I set the global Edit: it looks like I've run
in the past. How do I undo this setting? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
When your terminal starts fish, it passes on its environment, and that environment is then imported by fish as global variables.
Where did you add it? If you added it to the global $PATH (with something like 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 |
Beta Was this translation helpful? Give feedback.
When your terminal starts fish, it passes on its environment, and that environment is then imported by fish as global variables.
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…