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

omf reload path problems #884

Open
benkeil opened this issue Feb 1, 2022 · 4 comments
Open

omf reload path problems #884

benkeil opened this issue Feb 1, 2022 · 4 comments

Comments

@benkeil
Copy link

benkeil commented Feb 1, 2022

When you add somewhere directories to your path and run omf reload the path gets every time bigger and bigger with duplicated entires.

Environment report

Run the command omf doctor and paste the output here. Example:

Oh My Fish version:   7
OS type:              Darwin
Fish version:         fish, version 3.3.1
Git version:          git version 2.34.1
Git core.autocrlf:    no
Checking for a sane environment...
Your shell is ready to swim.
@faho
Copy link
Contributor

faho commented Feb 4, 2022

What omf reload does is re-execute fish. If that makes your $PATH bigger and bigger, then that means you're adding duplicates somewhere.

Use the fish_add_path helper to add your paths instead, introduced in fish 3.2.0. This will only add the paths if they aren't already included, so you can just put it in config.fish and be done with it.

I don't believe OMF itself adds to $PATH anywhere. If it did that should of course be fixed, but... uh... to be honest there's no real activity here anymore.

@benkeil
Copy link
Author

benkeil commented Feb 5, 2022

I already use fish_add_path. Is oh my fish dead? what does people use these days?

@scorphus
Copy link
Member

scorphus commented Feb 5, 2022

Can you please share how PATH is being set? In which file? What is the exact command? What arguments are passed to Fish when your terminal lunches it? Thanks!

@benkeil
Copy link
Author

benkeil commented Feb 6, 2022

I have multiple files in conf.d e.g. rust.fish

fish_add_path $HOME/.cargo/bin

My config.fish is empty.

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

No branches or pull requests

3 participants