dotfiles/__archive/fish/everquote.fish

53 lines
1.4 KiB
Fish
Raw Normal View History

2022-10-05 03:42:00 +00:00
#!/bin/bash
# ALIASES
2022-10-31 19:26:29 +00:00
alias kubectl=/opt/homebrew/Cellar/kubernetes-cli@1.22/1.22.15/bin/kubectl
2022-10-05 03:42:00 +00:00
alias ibrew="arch -x86_64 /usr/local/bin/brew"
# FUNCTIONS
function poweruser ()
aws sso login --profile=poweruser
end
function powerpip ()
aws codeartifact login --tool pip --repository internal --domain eq-remarketing --profile poweruser
end
function kubestaging ()
kubectl config use-context shared1-east1-us-staging
kubectl config set-context --current --namespace=remarketing
2022-10-31 19:26:29 +00:00
set -x AWS_PROFILE eks
2022-10-05 03:42:00 +00:00
end
function kubeprod ()
kubectl config use-context shared1-east1-us-prod
kubectl config set-context --current --namespace=remarketing
2022-10-31 19:26:29 +00:00
set -x AWS_PROFILE eks
2022-10-05 03:42:00 +00:00
end
function setup_crypto ()
# Needed for cryptography
export LDFLAGS="$LDFLAGS -L(brew --prefix openssl@1.1)/lib"
export CFLAGS="$CFLAGS -I(brew --prefix openssl@1.1)/include"
end
function brew_venv_39 ()
set brewpy (brew --cellar python@3.9)
$brewpy/3.9.10/bin/python3 -m venv venv
end
function brew_venv_37 ()
/usr/local/opt/python@3.7/bin/python3 -m venv venv
end
# Prompts for aurora password and doesn't echo it to the terminal, safer for history
function set_aurora ()
echo -ne "Aurora Username: "
read -rs AURORA_USERNAME
export AURORA_USERNAME
echo -ne "\nAurora Password: "
read -rs AURORA_PASSWORD
export AURORA_PASSWORD
echo "\nSet username/password for $AURORA_USERNAME"
end