From 41d692a4c14de518f78e928347318a40aecdfdf6 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 30 Jun 2023 07:30:44 +0200 Subject: [PATCH] rename update-installer to simple update --- .../completions/{update-installer => update} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename usr/share/bash-completion/completions/{update-installer => update} (69%) diff --git a/usr/share/bash-completion/completions/update-installer b/usr/share/bash-completion/completions/update similarity index 69% rename from usr/share/bash-completion/completions/update-installer rename to usr/share/bash-completion/completions/update index fd57de405..6c246cccd 100644 --- a/usr/share/bash-completion/completions/update-installer +++ b/usr/share/bash-completion/completions/update @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only # created by Tobias Powalowski -_update_installer() +_update() { local cur prev OPTS COMPREPLY=() @@ -13,7 +13,7 @@ _update_installer() esac case $cur in *) - OPTS="$(update-installer | grep '\-[a-z]' | cut -d ' ' -f2 | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g")" + OPTS="$(update | grep '\-[a-z]' | cut -d ' ' -f2 | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g")" COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) return 0 ;; @@ -21,4 +21,4 @@ _update_installer() compopt -o bashdefault -o default return 0 } -complete -F _update_installer update-installer +complete -F _update update