Created
October 28, 2021 21:38
-
-
Save alchen99/360836a4881a4e9a157389fac6ce4684 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# additional setup for remote VM | |
alias screendr='/usr/bin/screen -DR' | |
alias tmuxdr='/usr/bin/tmux attach-session -d' | |
# Terminal colors | |
export COLOR_NC='\e[0m' # No Color | |
export COLOR_BLACK='\e[0;30m' | |
export COLOR_GRAY='\e[1;30m' | |
export COLOR_RED='\e[0;31m' | |
export COLOR_LIGHT_RED='\e[1;31m' | |
export COLOR_GREEN='\e[0;32m' | |
export COLOR_LIGHT_GREEN='\e[1;32m' | |
export COLOR_BROWN='\e[0;33m' | |
export COLOR_YELLOW='\e[1;33m' | |
export COLOR_BLUE='\e[0;34m' | |
export COLOR_LIGHT_BLUE='\e[1;34m' | |
export COLOR_PURPLE='\e[0;35m' | |
export COLOR_LIGHT_PURPLE='\e[1;35m' | |
export COLOR_CYAN='\e[0;36m' | |
export COLOR_LIGHT_CYAN='\e[1;36m' | |
export COLOR_LIGHT_GRAY='\e[0;37m' | |
export COLOR_WHITE='\e[1;37m' | |
# kubectl | |
#source <(kubectl completion bash) | |
if [ -f /etc/rancher/k3s/k3s.yaml ]; then | |
export KUBECONFIG="~/.kube/config:/etc/rancher/k3s/k3s.yaml" | |
elif [ -f ~/.kube/config ]; then | |
export KUBECONFIG="~/.kube/config" | |
fi | |
alias k='kubectl' | |
alias kcc='kubectl config current-context' | |
alias kgc='kubectl config get-contexts' | |
alias kuse='kubectl config use-context' | |
alias kb='kubectl kustomize' | |
alias kj='kubectl -n jenkins' | |
alias kl='kubectl -n ldap' | |
alias km='kubectl -n monitoring' | |
alias kubev='kubectl -n vault' | |
alias kr='kubectl -n redis' | |
alias kcert='kubectl -n cert-manager' | |
alias knginx='kubectl -n ingress-nginx' | |
alias kvault='kubectl -n vault' | |
alias ksys='kubectl -n kube-system' | |
set -o vi | |
# starship prompts | |
#export STARSHIP_LOG=debug | |
#export STARSHIP_CACHE=~/.cache/starship/session_${STARSHIP_SESSION_KEY}.log | |
if [[ -f /usr/local/bin/starship ]]; then eval "$(starship init bash)"; fi | |
# NPM | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
# gcloud | |
if [[ -d $HOME/google-cloud-sdk ]]; then | |
#export CLOUDSDK_PYTHON=python3.8 | |
. $HOME/google-cloud-sdk/path.bash.inc | |
. $HOME/google-cloud-sdk/completion.bash.inc | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment