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 a method for installing fish function files #1615

Merged
merged 1 commit into from Dec 8, 2016

Conversation

Projects
None yet
3 participants
@zachwhaley
Contributor

zachwhaley commented Dec 3, 2016

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew tests with your changes locally?

Fish shell allows third-party software vendors to put their own function files in a directory for their software.
For brew installed Fish shell, this is /usr/local/share/fish/vendor_functions.d

@zachwhaley

This comment has been minimized.

Show comment
Hide comment
@zachwhaley

zachwhaley Dec 3, 2016

Contributor

Thanks @bfontaine for the feedback!

Do y'all want me to amend this commit, or create new ones?

Contributor

zachwhaley commented Dec 3, 2016

Thanks @bfontaine for the feedback!

Do y'all want me to amend this commit, or create new ones?

@MikeMcQuaid

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Dec 4, 2016

Member

What software installs Fish functions and what are they used for? Thanks!

Member

MikeMcQuaid commented Dec 4, 2016

What software installs Fish functions and what are they used for? Thanks!

@zachwhaley

This comment has been minimized.

Show comment
Hide comment
@zachwhaley

zachwhaley Dec 4, 2016

Contributor

@MikeMcQuaid Fish shell plugins and frameworks probably use Fish functions, (e.g. oh-my-fish), and they are basically command line commands for the Fish shell.

My little project uses a Fish function to override and enhance a command.

Contributor

zachwhaley commented Dec 4, 2016

@MikeMcQuaid Fish shell plugins and frameworks probably use Fish functions, (e.g. oh-my-fish), and they are basically command line commands for the Fish shell.

My little project uses a Fish function to override and enhance a command.

Add a method for installing fish function files
Fish shell allows third-party software vendors to put their own function files in a directory for their software.
For brew installed Fish shell, this is /usr/local/share/fish/vendor_functions.d
@MikeMcQuaid

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Dec 7, 2016

Member

My little project uses a Fish function to override and enhance a command.

@zachwhaley To make a core change we'll probably want a few example projects rather than just your personal one. Could you link to a few? Thanks!

Member

MikeMcQuaid commented Dec 7, 2016

My little project uses a Fish function to override and enhance a command.

@zachwhaley To make a core change we'll probably want a few example projects rather than just your personal one. Could you link to a few? Thanks!

@zachwhaley

This comment has been minimized.

Show comment
Hide comment
@zachwhaley

zachwhaley Dec 8, 2016

Contributor

@MikeMcQuaid see my comment on PR #1616

Thanks!

Contributor

zachwhaley commented Dec 8, 2016

@MikeMcQuaid see my comment on PR #1616

Thanks!

@zachwhaley

This comment has been minimized.

Show comment
Hide comment
@zachwhaley

zachwhaley Dec 8, 2016

Contributor

Here are a couple packages that are installing a fish script to some location and asking the user to source that file, when instead they could install that script to fish/vendor_functions.d and it would be autoloaded when the user runs it.

Contributor

zachwhaley commented Dec 8, 2016

Here are a couple packages that are installing a fish script to some location and asking the user to source that file, when instead they could install that script to fish/vendor_functions.d and it would be autoloaded when the user runs it.

@MikeMcQuaid

This comment has been minimized.

Show comment
Hide comment
@MikeMcQuaid

MikeMcQuaid Dec 8, 2016

Member

Perfect, thanks for explaining so well. Merging this and would ❤️ PRs for those formulae to use this after that.

Member

MikeMcQuaid commented Dec 8, 2016

Perfect, thanks for explaining so well. Merging this and would ❤️ PRs for those formulae to use this after that.

@MikeMcQuaid MikeMcQuaid merged commit 276d009 into Homebrew:master Dec 8, 2016

3 checks passed

codecov/patch 72.72% of diff hit (target 63.19%)
Details
codecov/project 63.20% (+<.01%) compared to 88d0e8c
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@zachwhaley zachwhaley deleted the zachwhaley:fish_functions branch Dec 8, 2016

@Homebrew Homebrew locked and limited conversation to collaborators May 3, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.