fix omz being in wrong directory

This commit is contained in:
Philipp 2024-07-24 23:47:14 +02:00
parent 36265bd61c
commit 87dad1b7e9
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
1034 changed files with 0 additions and 1232 deletions

View file

@ -0,0 +1,29 @@
#compdef spring 'spring'
#autoload
_spring() {
local cword
let cword=CURRENT-1
local hints
hints=()
local reply
while read -r line; do
reply=`echo "$line" | awk '{printf $1 ":"; for (i=2; i<NF; i++) printf $i " "; print $NF}'`
hints+=("$reply")
done < <(spring hint ${cword} ${words[*]})
if ((cword == 1)) {
_describe -t commands 'commands' hints
return 0
}
_describe -t options 'options' hints
_files
return 0
}
_spring "$@"