Skip to content

Commit

Permalink
[eos-bash-shared] code cleanup in eos-update.conpletion
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-192 committed Aug 21, 2024
1 parent a5213ba commit cb602e7
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions eos-update.completion
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,11 @@ _eos-update_()
local cur prev #words cword split
_init_completion -s || return

local options=$(eos-update --dump-options)
case "$prev" in
--min-free-bytes)
_eos-update_complete "{1..9}" ;;
--helper)
_eos-update_complete "yay paru pacman" ;;
--edit-mirrorlist)
_eos-update_complete "arch endeavouros" ;;
*)
_eos-update_complete "$options" ;;
--min-free-bytes) _eos-update_complete "{1..9}" ;;
--helper) _eos-update_complete "yay paru pacman" ;;
--edit-mirrorlist) _eos-update_complete "arch endeavouros" ;;
*) _eos-update_complete "$(eos-update --dump-options)" ;;
esac
}
complete -F _eos-update_ eos-update

0 comments on commit cb602e7

Please sign in to comment.