Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 authored Mar 21, 2024
2 parents 29ee95a + e67e6c1 commit 594cd42
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion res/completions/arch-update.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _arch-update() {
local arg="${2}"
local -a opts
opts=('-c --check
-l --list
-d --devel
-n --news
-h --help
Expand All @@ -10,4 +11,4 @@ _arch-update() {
COMPREPLY=( $(compgen -W "${opts[*]}" -- "${arg}") )
}

complete -F _arch-update arch-update
complete -F _arch-update arch-update
1 change: 1 addition & 0 deletions res/completions/arch-update.fish
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
complete -c arch-update -f

complete -c arch-update -s c -l check -d 'Check for available updates'
complete -c arch-update -s l -l list -d 'Display the list of pending updates'
complete -c arch-update -s d -l devel -d 'Update AUR development packages'
complete -c arch-update -s n -l news -d 'Display latest Arch news'
complete -c arch-update -s h -l help -d 'Display the help message'
Expand Down
1 change: 1 addition & 0 deletions res/completions/arch-update.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
local -a opts
opts=(
{-c,--check}'[Check for available updates]'
{-l,--list}'[Display the list of pending updates]'
{-d, --devel}'[Update AUR development packages]'
{-n,--news}'[Display latest Arch news]'
{-h,--help}'[Display the help message]'
Expand Down
2 changes: 1 addition & 1 deletion src/script/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ quit_msg() {
read -n 1 -r -s -p $"$(info_msg "${msg}")" && echo
}

# Definition of the evelation method to use (depending on which one is installed on the system)
# Definition of the elevation method to use (depending on which one is installed on the system)
if command -v sudo > /dev/null; then
su_cmd="sudo"
elif command -v doas > /dev/null; then
Expand Down

0 comments on commit 594cd42

Please sign in to comment.