-
Notifications
You must be signed in to change notification settings - Fork 216
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 fish support 🐟 #266
Add fish support 🐟 #266
Conversation
@chriskrycho thank you, sir! |
@scalvert @chadhietala @locks can you all do me a favor and make sure this works? Testing
Then you should be able to use Notion! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works on my machine.
I think there might be some issues with
|
See below! |
@chadhietala an update on the above: I can't reproduce the error you're seeing, but also running |
That path style actually seems to be fine; the real issue is that we're not quoting the value properly! I.e. this is part of #99. |
@chadhietala the latest commit I pushed should have fixed it (as well as, you know, just making |
Checking! |
Interesting. The quoting should have fixed this. 🤔 It's not writing it to anywhere in the deactivate/activate phase; it's just changing what the exported |
@chadhietala and I did some digging, and the issue around This isn't something Notion can (or even should) control or work around: the exact same thing happens if you just run As such, the best solution here seems to be documentation: let users know that the two solutions are:
@dherman, thoughts on where exactly we should document that? I was thinking in the |
@chriskrycho Would it be possible to add something to the |
We’d have to put it in the fish postscript itself, actually; I considered that but wasn’t sure how much value that adds vs. just documenting it clearly and searchably. Let me experiment with doing just that and see how it comes out. |
Everything is fine until the post-install step. Sourcing |
Weird. It worked fine for me and others; I will follow up with you in the morning! |
@scalvert and I synced up; the problem here was that his |
So the issue I had ended up being that my default shell was bash. So, the install was assuming, via the Setting |
- We cannot use `fish_user_paths`, nice though that would be, because it does not work correctly with our *unset* logic: the `PATH` we set up during installation in the user's profile stays there regardless of what we do with `fish_user_paths`. - We need to properly quote the string we render into the `PATH` value so that when a user has a path entry which has e.g. spaces in it, it works correctly when fish validates it.
🕺 |
This PR builds on the work @scalvert started in #171 to add full fish support to Notion.
Testing
Check out this branch locally. If you're using
hub
,hub pr checkout 266
. (If you're not usinghub
… you should do that thing. And also alias it togit
to make your life wonderful.)Create a release build:
cargo build --release
.Do the equivalent of running the install script:
./dev/unix/build.sh; and ./dev/unix/install.sh
.Open a new shell, or refresh your current shell with the updated config:
source ~/.config/fish/config.fish
.Then you should be able to use Notion!