configs/zsh: add helper to update direct go deps

This commit is contained in:
Aaron Bieber 2023-02-28 08:07:43 -07:00
parent b65f0b3058
commit e83b2d4214
No known key found for this signature in database

View File

@ -38,6 +38,13 @@
PROMPT='%n@%m[%(?.%{$fg[default]%}.%{$fg[red]%})%?%{$reset_color%}]:%~$vcs_info_msg_0_$(prompt_char) '
go_update_deps() {
for i in $(go list -m -f '{{if not (or .Indirect .Main)}}{{.Path}}{{end}}' all); do
go get -u $i
done
go mod tidy
}
k() {
''${K_DEBUG}
if [ -z $1 ]; then