Conversation
…n use this script. Furthermore, begun adding fish support.
bin/fresh
Outdated
There was a problem hiding this comment.
getent is not available on Mac OS X. Would it be possible to detect fish via the presence of an environment variable?
There was a problem hiding this comment.
Would using the $SHELL variable be more portable?
|
Ideally, a single preamble would be emitted which runs on both bash/zsh and fish. From a few minutes of research, I don’t see a way to do this though. |
|
How would you like to proceed? There is no way for a unified preamble as far as I can tell. |
|
I would prefer to just have a way to disable the preamble completely. Perhaps expand |
|
Ok, I will try that. _fresh_preamble gets called twice during fresh_install. Once because of _run_dsl install and once called directly. Is this intentional? |
|
This is intentional. The call in |
Changed the function
_fresh_preambleas discussed in #125 . Same logic as before, but in fish syntax.Currently the function works exclusively for either bash/zsh or fish, depending on the users default shell.
If the user changes his/her default shell, the function would need to be re-run. Is this a problem? I am not sure at what times the function is called exactly.