-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add support for disabling configuration #1256
Comments
|
I imagine |
Well.... maybe. As it currently is, I wouldn't recommend it. I've actually been running fish in this configuration - I test stuff by building via cmake, and then run it directly without installing, which leaves the prefix wrong. b0368fd improves the situation somewhat, though there' still a bunch of stuff that I wouldn't recommend running without:
I'm assuming not setting the locale or $PATH is alright. |
I imagine it'd be OK to add the standard (I run fish directly from |
Not $PATH, that's just inherited and usually okay. $fish_function_path, which is what fish uses to find its functions. (Though yes, we would have to think about universal variables like $fish_user_paths) |
Wow, that was quite confused of me! Let me try that again: We do the following things to $PATH in share/config.fish:
In addition, if $PATH is unset/empty, we set it to "/usr/bin" and "/bin" in C++. If it contains anything, we don't manipulate it.
I don't think I've heard of those being missing by accident, so I don't think that'd really help. Plus hardcoding would make it quite hard to remove on purpose. I took the same approach when it came to setting the locale - we only do that if none of the locale vars is defined, even though I strongly suggest running at least with UTF-8 encoding. |
DEL (aka backspace) and the arrows. This makes fish usable without binding functions, though not pleasant. See #1256.
This comment has been minimized.
This comment has been minimized.
See #5417 |
+1 for this.
Probably I can work around this by transforming the scripts into fish functions |
For testing purposes it would be handy to disable loading of some configuration files. I would suggest adding
-R
/--no-rc
switch for disabling loading files from/etc
and$XDG_CONFIG_HOME
and-D
/--no-defaults
for disabling loading from/usr/share/fish
.The text was updated successfully, but these errors were encountered: