From cb602e7a8a667ebd684651c43f30ad700ced1275 Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 21 Aug 2024 17:20:46 +0300 Subject: [PATCH] [eos-bash-shared] code cleanup in eos-update.conpletion --- eos-update.completion | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/eos-update.completion b/eos-update.completion index 97f7acd..0da6d17 100644 --- a/eos-update.completion +++ b/eos-update.completion @@ -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