Repository navigation
Bash completion - #226
Merged
Merged
Bash completion#226
Conversation
tyru
commented
Apr 6, 2018
| } | ||
|
|
||
| all_plugs() { | ||
| volt list -f "{{ range .Repos }}{{ println .Path }}{{ end }}" | sed -e 's/github\.com\///' | sed -e '/^www\./d' | sort |
Member
Author
Contributor
There was a problem hiding this comment.
I removed those lines, because the completion is only for username/package.
If the packages, which have to be parsed, were repeated ( because of github and www.github duality), there would be twice the same package in the list and I didn't want this to give me any problems, so I removed it
Member
Author
There was a problem hiding this comment.
I see. So how about this?
... | sed -E 's@^(www\.)?github\.com/@@' | sort -u
Contributor
There was a problem hiding this comment.
yes! this solves it!
I didn't know that '-u' option for sort. This is good 👍
tyru
commented
Apr 6, 2018
| } | ||
|
|
||
| this_plug() { | ||
| volt list -f "{{ range .Profiles }}{{ if eq \"$1\" .Name }}{{ range .ReposPath }}{{ println . }}{{ end }}{{ end }}{{ end }}" | sed -e 's/github\.com\///' | sed -e '/^www\./d' | sort |
Merged
Member
Author
|
oops, wrongly merged into master... this should be merged into devel. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #225
Add modified version of @AvianY's script.