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

Gentoo completions #4911

Merged
merged 6 commits into from Apr 25, 2018

Conversation

Projects
None yet
2 participants
@drwilly
Copy link
Contributor

drwilly commented Apr 16, 2018

Improvements for gentoo/portage related completions

drwilly added some commits Apr 6, 2018

Improve equery completion
- fix capitalization
- shorten descriptions
- implement subcommand shortcuts
- add arg completion for 'limit' and 'depth' switches
- improve arg completion for list subcommand in case of -p switch
@@ -0,0 +1,43 @@
function __fish_seen_ebuild_arg -d "Test if an ebuild-argument has been given in the current commandline"
set -l cmd (commandline -poc)

This comment has been minimized.

@faho

faho Apr 19, 2018

Member

This function can be replaced with

commandline -opc | string match -q '*.ebuild'

This comment has been minimized.

@drwilly

drwilly Apr 19, 2018

Contributor

neat

Update ebuild.fish
greatly simplify __fish_seen_ebuild_arg

@faho faho merged commit 0b0e65a into fish-shell:master Apr 25, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@faho

This comment has been minimized.

Copy link
Member

faho commented Apr 25, 2018

Merged, thanks!

@faho faho added this to the fish-3.0 milestone Apr 25, 2018

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