This commit is contained in:
Motiejus Jakštys 2024-04-12 14:59:47 +03:00 committed by Motiejus Jakštys
parent 301a46fa7d
commit 19e313d567

View File

@ -21,7 +21,7 @@ gg() {
local path=${paths[$path_index]} local path=${paths[$path_index]}
cd "$_gopath/$path" || { cd "$_gopath/$path" || {
>&2 echo "?" echo >&2 "?"
exit 1 exit 1
} }
} }
@ -37,8 +37,7 @@ g() {
# #
# Bash autocomplete for g and gg functions. # Bash autocomplete for g and gg functions.
# #
_g_complete() _g_complete() {
{
COMPREPLY=() COMPREPLY=()
local cur local cur
cur="${COMP_WORDS[COMP_CWORD]}" cur="${COMP_WORDS[COMP_CWORD]}"