Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I know the easiest and most straight forward method is to type fish_add_path $path from the cli, but I like the concept of setting the paths globally in config.fish since this lets me keep track of each path I add and easily edit or delete them via a text editor.

But this means it would add start-up overhead since the path has to be re-added every time, right? Would it be "best practice" for me to just forget about adding them globally and stick to the universal method?

You must be logged in to vote

It's fine - attempting to add 10 paths that already exist in $PATH and 1 that doesn't takes ~1.4ms on my system. That should be entirely negligible overhead.

You can measure it with time.

Use whatever you like.

Replies: 1 comment

Comment options

It's fine - attempting to add 10 paths that already exist in $PATH and 1 that doesn't takes ~1.4ms on my system. That should be entirely negligible overhead.

You can measure it with time.

Use whatever you like.

You must be logged in to vote
0 replies
Answer selected by roakizi
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.