Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set $PATH persistently for all users? #6904

Closed
kuvaldini opened this issue Apr 16, 2020 · 5 comments
Closed

How to set $PATH persistently for all users? #6904

kuvaldini opened this issue Apr 16, 2020 · 5 comments
Labels

Comments

@kuvaldini
Copy link

This thread #527 has exhaustive description and concrete recommendation to use $fish_user_paths.

But how can I set PATH for ALL users, not the only one?

@zanchey
Copy link
Member

zanchey commented Apr 16, 2020

You can change $PATH in /etc/fish/config.fish which is applied by all users.

On macOS, you can also use /etc/paths or /etc/paths.d/.

@kuvaldini
Copy link
Author

Are there plans to read paths from /etc/paths and /etc/paths.d in Linux?

@zanchey
Copy link
Member

zanchey commented Apr 16, 2020

I don't know of any Linux distributions which use that mechanism. If they did we'd certainly look at adding it. /etc/login.defs is probably the tool of choice on Debian, but fish doesn't need to read that - it's handled at another layer.

@kuvaldini
Copy link
Author

You can change $PATH in /etc/fish/config.fish which is applied by all users.

Thank you. This works fine.

@thernstig
Copy link
Contributor

@kuvaldini You can read about this in the docs: https://fishshell.com/docs/current/index.html#initialization-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants