ansible-role--bash/files/bashrc.d/50-dev-go.sh
2024-07-12 14:12:40 +02:00

12 lines
176 B
Bash

#!/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