Wednesday, May 16, 2018

How to remove permanently a path from the fish $PATH

  No comments
How to remove permanently a path from the fish $PATH. There is also $fish_user_paths, which is a universal variable (meaning it carries the same value across fish sessions and is synchronized across them). On startup and whenever fish_user_paths is modified, fish adds it to $PATH. If the offending directory is added here, execute set -e fish_user_paths[index] once (e.g. in an interactive session).
set -e fish_user_paths would remove the entire variable (while set -U fish_user_pathswould clear it) which would also work but would also remove all other paths.
just type on your terminal
set -e fish_user_paths
set -U fish_user_paths
Close your terminal and open again. that clear another path

No comments :

Post a Comment