-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.work
50 lines (40 loc) · 1.23 KB
/
.work
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
set -o pipefail
if [[ -f "${HOME}/.work_secrets" ]]; then
source "${HOME}/.work_secrets"
fi
export PATH="${PATH}:${HOME}/liveramp-bin"
export WORKSPACE="${GOPATH}/src/git.liveramp.net/arbortech/go"
export PATH="${WORKSPACE}/wbin:${PATH}"
if [[ -d "/var/nfs/mounts/bin" ]]; then
export PATH="${PATH}:/var/nfs/mounts/bin"
fi
if command -v git > /dev/null; then
git config --global user.email [email protected]
git config --global hub.host git.liveramp.net
git config --global url.ssh://[email protected]/.insteadOf https://git.liveramp.net/
fi
complete -F _make wmake
complete -F _make ./wmake
if command -v _completion_loader > /dev/null; then
_completion_loader make
fi
mac_docker() {
# Insert Docker into your shell using minikube.
status=$(minikube status --format="{{.ClusterStatus}}" 2>/dev/null)
if [ "$status" == "Running" ]; then
eval $(minikube docker-env)
fi
}
case "$(uname)" in
Darwin)
# Start Docker on shell startup, if possible. Don't want to make it part of
# precmd() because even the no-op takes a long time.
mac_docker
;;
esac
jump_to() {
r=$1; shift
e=$1; shift
ssh -At $(curl -s --fail "http://consul-server.liveramp.net:8500/v1/kv/aws/$r/$e/bastion?raw") $*
}