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
etersoft
eepm
Commits
b76b7e53
Commit
b76b7e53
authored
Jan 15, 2025
by
Ivan Mazhukin
Committed by
Vitaly Lipatov
Jan 18, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bash & zsh completion: add path support for epmi (eterbug #17968)
parent
93004a9b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
8 deletions
+32
-8
eepm
bash_completion/eepm
+16
-4
_eepm
zsh_completion/_eepm
+16
-4
No files found.
bash_completion/eepm
View file @
b76b7e53
...
...
@@ -60,10 +60,22 @@ __eepm_list_installed_packages()
COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) )
}
__eepm_list_available_packages()
{
COMPREPLY=( $( epm list --available --quiet --short --direct ) )
COMPREPLY=( $( compgen -W '${COMPREPLY[@]}' -- "$cur" ) )
__eepm_list_available_packages() {
local cur="${COMP_WORDS[COMP_CWORD]}"
local repo_results
if [[ "$cur" == ./* || "$cur" == ../* || "$cur" == /* ]]; then
_filedir
return
fi
repo_results=$(epm list --available --quiet --short --direct | grep "^$cur" )
COMPREPLY=( $(compgen -W "$repo_results" -- "$cur") )
if [[ -z "$COMPREPLY" ]]; then
_filedir
fi
}
__eepm_list_available_prescription()
...
...
zsh_completion/_eepm
View file @
b76b7e53
...
...
@@ -697,14 +697,26 @@ _epm_play_packages() {
}
_epm_available_packages() {
local available_packages
available_packages=( $(epm list --available --quiet --short --direct) )
_describe -t available-packages 'available package' available_packages
if [[ ${words[CURRENT]} == -* ]]; then
local cur=${words[CURRENT]}
if [[ "$cur" == ./* || "$cur" == ../* || "$cur" == /* ]]; then
_files
return
fi
repo_results=( ${(f)"$(epm list --available --quiet --short --direct | grep "^$cur")"} )
if (( ${#repo_results[@]} > 0 )); then
_describe -t available-packages 'available package' repo_results
else
_files
fi
if [[ "$cur" == -* ]]; then
_arguments -C "${EEPM_SHORT_ARGS[@]}" "${EEPM_FULL_ARGS[@]}"
fi
}
_epm_installed_packages() {
local installed_packages
installed_packages=( $(epm list --installed --quiet --short --direct) )
...
...
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