mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 16:21:15 -03:00
Move __fish_portage_print_repository_names into emaint completion script
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user