-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
33 lines (25 loc) · 797 Bytes
/
.zshrc
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
source "${HOME}/.project"
export PATH="/usr/local/opt/libpq/bin:$PATH"
export PATH="/usr/local/opt/ruby/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/libpq/lib"
export CPPFLAGS="-I/usr/local/opt/libpq/include"
alias be="cd ~/Software/${PROJECT}"
alias init="ssh-add ~/.ssh/id_rsa${SSH_KEY_POSTFIX}"
alias server="python -m http.server 80"
# Kubernetes
export USE_GKE_GCLOUD_AUTH_PLUGIN=True
function rlogin {
gcloud auth login
gcloud container clusters get-credentials "$CLUSTER" --region "$REGION"
}
function rlogout {
gcloud auth revoke $EMAIL
}
function rlist {
kubectl get pod -n "$PROJECT"
}
function rbash {
pod="$1"
id=$(kubectl get pod -n "$PROJECT" | tail -n +2 | tr -s " " | cut -d " " -f 1 | grep "$pod")
kubectl exec -it -n "$PROJECT" "$id" -- bash
}