-
Notifications
You must be signed in to change notification settings - Fork 132
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
Remove fish_greeting.fish
from this prompt
#175
Comments
Hello @neon64, Was you SolutionYou can either remove DiscussionI understand your point about responsability but However, one is free to customize upon it as described above. Cheers! |
Bumping. Why is pure the plugin that gets to overwrite the You're overwriting it because you want to check for updates, but shouldn't that be up to the user? Most fish users would be happy to update their greeting to add that feature. Every time I run my |
Thanks for the feedback, do you think I can automate the addition of the call? |
I would definitely consider adding it to the README as an option to add to |
Here's an alternative. Instead of shipping an empty |
Current BehaviourCurrently, on new session, pure checks for new release and show command to install, as we override the Proposed Behaviour
Does that sound right, to you? |
@edouard-lopez that sounds right to me. You could also follow the pattern of extending the file if it exists, or the |
There are various ways one may accomplish this. I would define an install event handler in function _pure_install --on-event pure_install
set -U fish_greeting ""
end |
How would you do that programmatically?
That's a good idea! |
Just bumped into this again. @edouard-lopez I agree option 2 is cleaner. Would you like to do it or do you want me to have a go? If you point me to the piece of code that does the overwrite I can take a shot. |
@jorgebucaran I defined a custom However, we can:
@wjagodfrey I'm open to PR, here are some entry points:
The project has a docker container you can use (cf. makefile) |
My suggestion is to simply remove |
Installing this prompt overrides my own
fish_greeting.fish
file. While I understand its nice to get rid of the default fish greeting, shouldn't that be the responsibility of the user or a separate plugin, and not the responsibility of a prompt?In other words, I feel it should be possible to mix and match prompts and greetings, rather than one controlling the other.
On another note: thanks very much for this prompt - I particularly like how the arrow direction switches with fish's vim mode - that's much more subtle than any mode indicator I had devised!
The text was updated successfully, but these errors were encountered: