-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.extra
More file actions
executable file
·53 lines (44 loc) · 1.91 KB
/
.extra
File metadata and controls
executable file
·53 lines (44 loc) · 1.91 KB
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
50
51
52
53
# Add `~/bin` to the `$PATH`
#local bins
export PATH=$HOME/.local/bin:$PATH
export PATH=$HOME/bin:$PATH
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH
export PATH=$HOME/xalg/bin:$PATH;
export PATH=$HOME/Library/Python/3.9/bin:$PATH;
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
#terraform
#export PATH=$HOME/terraform/bin:$PATH
export POSTGRESQL_USER=xalg
export POSTGRESQL_PASSWORD=Pr1amsf0lly
export POSTGRESQL_DATABASE=xa
#eval "($rbenv init - )"
# Git credentials
GIT_AUTHOR_NAME="Vincent Flesouras"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="x.algorithm@gmail.com"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"
HOMEBREW_GITHUB_API_TOKEN="96312bdaf0a211d3008d377e41014700677cc0d9"
alias end-ssh-agent="for pid in $(ps -ef | grep "ssh-agent" | awk '{print $2}'); do kill -9 $pid; done"
# --- Kubernetes Config Aliases (KUBECONFIG Variable Method) ---
export KUBECONFIG_EPYC="/Users/xalg/.kube/configs/epyc-config"
export KUBECONFIG_EPYC2="/Users/xalg/.kube/configs/epyc2-config"
# Set 'epyc' as the active config
alias kset-epyc="export KUBECONFIG=$KUBECONFIG_EPYC && echo 'KUBECONFIG set to epyc' && kubectl config current-context"
# Set 'epyc2' as the active config
alias kset-epyc2="export KUBECONFIG=$KUBECONFIG_EPYC2 && echo 'KUBECONFIG set to epyc2' && kubectl config current-context"
# Unset KUBECONFIG to return to the default (~/.kube/config symlink)
alias kset-default="unset KUBECONFIG && echo 'KUBECONFIG unset, using default symlink' && kubectl config current-context"
# Helper to see which config is active
function kstatus() {
if [ -n "$KUBECONFIG" ]; then
echo "KUBECONFIG is set to: $KUBECONFIG"
else
echo "KUBECONFIG is not set. Using default: ~/.kube/config"
echo "Default symlink points to: $(readlink ~/.kube/config)"
fi
echo "---"
kubectl config current-context
}