mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
feat(shell/golang): add list_go_global_packages function
This commit is contained in:
@@ -15,6 +15,12 @@ zinit light stefanmaric/g
|
|||||||
# global golang packages
|
# global golang packages
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
|
list_go_global_packages() {
|
||||||
|
for bin in $(ls -1 ~/.go/bin); do
|
||||||
|
go version -m ~/.go/bin/$bin | grep '^[[:space:]]path' | awk '{ print $2 }'
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
install_go_global_packages() {
|
install_go_global_packages() {
|
||||||
local packages=(
|
local packages=(
|
||||||
github.com/akavel/up@latest
|
github.com/akavel/up@latest
|
||||||
|
|||||||
Reference in New Issue
Block a user