Skip to content

A simple zsh plugin for the Go programming language toolchain.

License

Notifications You must be signed in to change notification settings

wintermi/zsh-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zsh-golang

A zsh plugin for the Go programming language toolchain.

Install

Using the ⚡ Zap minimal zsh plugin manager, add the following to your .zshrc

# Install plugin
plug "wintermi/zsh-golang"

Prerequisite Checks

A number of checks are performed to verify the following Go programming language tools have been installed:

  • g - A simple go version manager
  • go - The Go programming language
  • gofmt - Formats Go programs

Environment

By default, the following go environment variables will be setup

export GOPATH="$HOME/go"
export GOROOT="$HOME/.go"

$GOPATH/bin is also added to the PATH.

If a different environment location is required, these variables can be defined prior to installing the plugin, as shown below

# Install plugin with a different environment location
export GOROOT="$HOME/.local/share/golang"
export GOPATH="$HOME/MyProjects/go-projects"
plug "wintermi/zsh-golang"

Tab Completions

Tab completions are provided for g, go and gofmt commands. An example of which can be seen below.

g-install-tab-completion

License

The zsh-golang plugin is released under the Apache License 2.0 unless explicitly mentioned in the file header.

About

A simple zsh plugin for the Go programming language toolchain.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages