-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.commonvars
More file actions
13 lines (11 loc) · 759 Bytes
/
Copy path.commonvars
File metadata and controls
13 lines (11 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
[[ -z "${EMAIL}" ]] && echo what is your email? && read EMAIL && echo export EMAIL="${EMAIL}" >> ~/.privateVars
[[ -z "${USER_NAME}" ]] && echo what is your name? && read USER_NAME && echo export USER_NAME="${USER_NAME}" >> ~/.privateVars
[[ -z "${GITHUB_USER}" ]] && echo what is your github user? && read GITHUB_USER && echo export GITHUB_USER="${GITHUB_USER}" >> ~/.privateVars
export MYSCRIPTS="$HOME/scripts"
[[ -z "$GOPATH" ]] && export GOPATH="$HOME/go"
export SANDBOX="${GOPATH}/src/github.com/${GITHUB_USER}/sandbox"
export CODE_HOME="${GOPATH}/go/src/github.com/"
export PATH="${MYSCRIPTS}:${MYSCRIPTS}/bin:${MYSCRIPTS}/scripts:/usr/local/sbin:${PATH}:$GOPATH/bin:/usr/local/go/bin"
export EDITOR=$(which vim)
export GIT_EDITOR=$EDITOR