Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go: add zstyle to prevent listing packages from GOROOT and GOPATH #750

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Jun 3, 2020

  1. go: add zstyle to prevent listing packages from GOROOT and GOPATH

    Adding all of GOROOT means all of stdlib is added as completions to many
    commands, which I find rather noisy and rarely useful.
    
    Before:
    
        [~/check]% go install <Tab>
        archive/    context/    fmt/        log/        regexp/     testing/
        bufio/      crypto/     go/         math/       runtime/    text/
        builtin/    database/   hash/       mime/       sort/       time/
        bytes/      debug/      html/       net/        strconv/    unicode/
        check.go    encoding/   image/      os/         strings/    unsafe/
        cmd/        errors/     index/      path/       sync/       vendor/
        compress/   expvar/     internal/   plugin/     syscall/
        container/  flag/       io/         reflect/    testdata/
    
    After:
    
        [~/check]% go install <Tab>
        # completes to ./check.go, which is the only file in this small package.
    
    Also add a setting to disable GOPATH, as it's kind deprecated and on its
    way out. Sometimes I have some stuff "go get"'d in there, but I rarely
    want that as completions.
    arp242 committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    bef2035 View commit details
    Browse the repository at this point in the history