mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 07:06:40 +00:00
feat(golang): install and manage Go versions with stefanmaric/g
This commit is contained in:
@@ -2,6 +2,15 @@
|
|||||||
# Go (golang) environment setup.
|
# Go (golang) environment setup.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# ==============================================================================
|
||||||
|
# g - Simple go version manager, gluten-free
|
||||||
|
# ==============================================================================
|
||||||
|
|
||||||
|
# Create symlink for "g" called "gv", as I have "g" aliased to "git".
|
||||||
|
zinit ice wait lucid as'program' pick'bin/g' from'gh' \
|
||||||
|
atclone'cd bin && ln -s g gv' atpull'%atclone'
|
||||||
|
zinit light stefanmaric/g
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# global golang packages
|
# global golang packages
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|||||||
3
zshenv
3
zshenv
@@ -149,8 +149,9 @@ path_prepend "/opt/emacs/bin"
|
|||||||
# Use custom tmux install if available
|
# Use custom tmux install if available
|
||||||
path_prepend "/opt/tmux/bin"
|
path_prepend "/opt/tmux/bin"
|
||||||
|
|
||||||
# Go setup for golang (./zsh/golang.zsh)
|
# Go setup (./zsh/golang.zsh)
|
||||||
export GOPATH="$HOME/.go"
|
export GOPATH="$HOME/.go"
|
||||||
|
export GOROOT="$HOME/.local/go"
|
||||||
path_prepend "$GOPATH/bin"
|
path_prepend "$GOPATH/bin"
|
||||||
|
|
||||||
# Ruby setup for rbenv (./zsh/ruby.zsh)
|
# Ruby setup for rbenv (./zsh/ruby.zsh)
|
||||||
|
|||||||
Reference in New Issue
Block a user