Add completions for ZSH update alias

This commit is contained in:
Marko Korhonen 2023-09-11 15:33:01 +03:00
parent 85203e7811
commit 1b53619a47
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -240,6 +240,29 @@ update() {
esac
}
_update() {
local commands=(
"all:Update everything"
"dotfiles:Update dotfiles"
"plugins:Update plugins for NeoVim and ZSH"
{%@@ if profile == "Moria" @@%}
"repo:Update packages in Korhonen AUR repository"
"docker:Update all Docker containers"
{%@@ endif @@%}
)
_arguments \
'1: :->command' \
'*:: :->args'
case "$state" in
(command)
_describe -t commands 'available commands' commands
;;
esac
}
compdef _update update
# turn on usb tethering on my android phone
tether() { adb shell su -c "service call connectivity 33 i32 1 s16 me" > /dev/null }