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

13 lines
176 B
Bash
Raw Normal View History

2015-11-17 11:07:59 +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