Skip to content
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

Made the fish function implementation more idiomatic #128

Merged
merged 2 commits into from
Jan 16, 2020

Conversation

Lucretiel
Copy link
Contributor

@Lucretiel Lucretiel commented Jan 10, 2020

This pull request makes the fish function more idiomatic. In addition to a minor refactor of the function itself, to use more descriptive variable names and local variables, it also moves the function definition into ~/.config/fish/functions/br.fish, where fish stores & lazily loads functions from.

Additionally, rustfmt fish.rs

fish `br` function now uses fish best practices:
- Lives in ~/.config/fish/functions/br.fish
- Script written in more idiomatic fish style
@Canop
Copy link
Owner

Canop commented Jan 16, 2020

There should be a discussion with fish users on this PR.

@Lucretiel
Copy link
Contributor Author

Totally. For reference, the relevant fish documentation for ~/.config/fish/functions is here https://fishshell.com/docs/current/tutorial.html#tut_autoload

@offbyone
Copy link

This is what I expect for fish shell integration. +1 from me.

@Canop Canop merged commit a6bcaf3 into Canop:master Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants