Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
eepm
Commits
0fb83501
Commit
0fb83501
authored
Jun 26, 2025
by
Ivan Mazhukin
Committed by
Vitaly Lipatov
Jul 02, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zsh_completion: fix -y completion (eterbug #18367)
parent
29d1da35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
_eepm
zsh_completion/_eepm
+13
-7
No files found.
zsh_completion/_eepm
View file @
0fb83501
...
...
@@ -8,9 +8,6 @@ _epm() {
EEPM_SUBCOMMANDS_ARGS=(epmi epme epmp epmqf epmI epms epmsf epmu epmq epmql epmqa epmqi epmcl epmrl epmwd epmqp)
EEPM_SHORT_ARGS=(
'-v[print version]'
'-h[show help]'
'-y[non interactive mode]'
'-e[remove packages]'
'-P[remove packages]'
'-s[search package by name]'
...
...
@@ -28,6 +25,12 @@ _epm() {
)
EEPM_SHORT_ARGS_SKIP_COMP=(
'-h[show help]'
'-y[non interactive mode]'
'-v[print version]'
)
EEPM_FULL_ARGS=(
'--help[show help]'
...
...
@@ -49,7 +52,7 @@ _epm() {
'--simulate[print only (autoremove/autoorphans/remove only)]'
'--just-print[print only (autoremove/autoorphans/remove only)]'
'--no-act[print only (autoremove/autoorphans/remove only)]'
'--short[short output (just
'package' instead 'package-version-release'
)]'
'--short[short output (just
"package" instead "package-version-release"
)]'
'--direct[direct install package file from ftp]'
'--repack[repack rpm package(s) before install]'
'--norepack[don`t repack rpm package(s) if it is by default before install]'
...
...
@@ -271,6 +274,7 @@ _epm() {
if [[ ! " ${EEPM_SUBCOMMANDS_ARGS[@]} " =~ " $cmd " ]]; then
_arguments -C \
"${EEPM_SHORT_ARGS[@]}" \
"${EEPM_SHORT_ARGS_SKIP_COMP[@]}" \
"${EEPM_FULL_ARGS[@]}" \
'*::arg:->args' \
&& ret=0
...
...
@@ -374,7 +378,7 @@ _epm_list_available_prescription()
_describe -t list_available_prescription 'list available prescription' list_available_prescription
if [[ ${words[CURRENT]} == -* ]]; then
_arguments -C "${EEPM_SHORT_ARGS[@]}" "${EEPM_FULL_ARGS[@]}"
_arguments -C "${EEPM_SHORT_ARGS[@]}" "${EEPM_
SHORT_ARGS_SKIP_COMP[@]}" "${EEPM_
FULL_ARGS[@]}"
fi
}
...
...
@@ -716,7 +720,7 @@ _epm_available_packages() {
fi
if [[ "$cur" == -* ]]; then
_arguments -C "${EEPM_SHORT_ARGS[@]}" "${EEPM_FULL_ARGS[@]}"
_arguments -C "${EEPM_SHORT_ARGS[@]}" "${EEPM_
SHORT_ARGS_SKIP_COMP[@]}" "${EEPM_
FULL_ARGS[@]}"
fi
}
...
...
@@ -724,9 +728,11 @@ _epm_available_packages() {
_epm_installed_packages() {
local installed_packages
installed_packages=( $(epm list --installed --quiet --short --direct) )
_describe -t installed-packages 'installed package' installed_packages
if [[ ${words[CURRENT]} == -* ]]; then
_arguments -C "${EEPM_SHORT_ARGS[@]}" "${EEPM_FULL_ARGS[@]}"
_arguments -C "${EEPM_SHORT_ARGS[@]}" "${EEPM_
SHORT_ARGS_SKIP_COMP[@]}" "${EEPM_
FULL_ARGS[@]}"
fi
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment