mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Move __fish_portage_print_repository_names into emaint completion script
This commit is contained in:
parent
69255d5641
commit
40832f897c
2 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
function __fish_portage_print_repository_names --description 'Print the names of all configured repositories'
|
||||
# repos.conf may be a file or a directory
|
||||
find /etc/portage/repos.conf -type f -exec cat '{}' + | string replace -r --filter '^\s*\[([[:alnum:]_][[:alnum:]_-]*)\]' '$1' | string match -v -e DEFAULT
|
||||
end
|
||||
|
||||
## Global Opts
|
||||
complete -c emaint -s h -l help -d "Show this help message and exit"
|
||||
complete -c emaint -s c -l check -d "Check for problems"
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
function __fish_portage_print_repository_names --description 'Print the names of all configured repositories'
|
||||
# repos.conf may be a file or a directory
|
||||
find /etc/portage/repos.conf -type f -exec cat '{}' + | string replace -r --filter '^\s*\[([[:alnum:]_][[:alnum:]_-]*)\]' '$1' | string match -v -e DEFAULT
|
||||
end
|
Loading…
Reference in a new issue