Add completions for ZSH update alias
This commit is contained in:
parent
85203e7811
commit
1b53619a47
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Reference in a new issue