mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2026-01-29 09:23:02 +01:00
21 lines
366 B
Bash
Executable file
21 lines
366 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Append our default paths
|
|
appendpath () {
|
|
case ":$PATH:" in
|
|
*:"$1":*)
|
|
;;
|
|
*)
|
|
if [ -d "$1" ]; then
|
|
export PATH="${PATH:+$PATH:}$1"
|
|
fi
|
|
esac
|
|
}
|
|
|
|
appendpath ~/.local/bin
|
|
appendpath ~/.bin
|
|
|
|
export GOPATH=$HOME/.go
|
|
export GOBIN=$HOME/.gobin
|
|
appendpath "$GOPATH"/bin
|
|
appendpath "$GOBIN"
|