mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
31 lines
744 B
Bash
Executable File
31 lines
744 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Install Go packages
|
|
#
|
|
# shellcheck source=shared.sh
|
|
source "$HOME/.dotfiles/scripts/shared.sh"
|
|
|
|
have go && {
|
|
packages=(
|
|
# sysadmin/scripting utilities, distributed as a single binary
|
|
github.com/skx/sysbox@latest
|
|
github.com/dotzero/git-profile@latest
|
|
github.com/google/yamlfmt/cmd/yamlfmt@latest
|
|
github.com/ericchiang/pup@latest
|
|
github.com/suntong/html2md@latest
|
|
github.com/cheat/cheat/cmd/cheat@latest
|
|
)
|
|
|
|
for pkg in "${packages[@]}"; do
|
|
# Trim spaces
|
|
pkg=${pkg// /}
|
|
# Skip comments
|
|
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
|
|
|
|
msg_run "Installing go package:" "$pkg"
|
|
go install "$pkg"
|
|
echo ""
|
|
done
|
|
|
|
msg_ok "Done"
|
|
} || msg "go hasn't been installed yet."
|