global: Switch the function-declarations to avoid unexpected alias expansions

This commit is contained in:
Koichi Murase
2023-02-10 00:38:56 +09:00
parent 0368b46c61
commit 59f6ef145b
74 changed files with 543 additions and 543 deletions

View File

@@ -10,10 +10,10 @@ complete -f -X '!*.6' 6l
complete -f -X '!*.5' 5l
complete -f -X '!*.go' 8g 6g 5g gofmt gccgo
_go_clear_cache() {
function _go_clear_cache {
unset _go_imports
}
_go_importpath_cache() {
function _go_importpath_cache {
if [ -z "$_go_imports" ]; then
_go_imports=$(go list all 2>/dev/null)
export _go_imports