ansible-role--bash/files/bashrc.d/50-dev-go.sh

13 lines
176 B
Bash
Raw Normal View History

2024-07-12 12:12:40 +00:00
#!/bin/sh
##
# Set up Go environment
#
if hash go > /dev/null 2>&1; then
if [ -d "$HOME/bin" ]; then
export GOPATH="$HOME/src/Go"
export PATH="$GOPATH/bin:$PATH"
fi
fi