[aliases] Update bookpull stuffs
This commit is contained in:
17
zsh/.zshrc
17
zsh/.zshrc
@ -2,12 +2,15 @@
|
||||
export GOPATH="$HOME/.go"
|
||||
export PATH=$HOME/.bin:$HOME/var/bin:/usr/local/bin:$PATH:$HOME/.go/bin
|
||||
|
||||
|
||||
export ZSH="$HOME/.oh-my-zsh"
|
||||
|
||||
ZSH_THEME="robbyrussell"
|
||||
|
||||
plugins=(git z fzf asdf direnv emacs yarn)
|
||||
|
||||
eval "$(aws configure export-credentials --profile np-farmers --format env)"
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# See ~/.aliases for the various aliases seen in here
|
||||
@ -45,13 +48,13 @@ sush() {
|
||||
if [[ $1 == "sbx" ]]
|
||||
then
|
||||
asso sure-inc
|
||||
aeks sure-inc
|
||||
aws eks update-kubeconfig --name surepreme-sandbox-k8s-use1 --profile $argv
|
||||
kubectl exec -it $(kubectl get pods | fzf | awk '{print $1}'|head -n 1) -- bash
|
||||
fi
|
||||
|
||||
if [[ $1 == "qa" ]]
|
||||
then
|
||||
aeks np-farmers
|
||||
qaeks np-farmers
|
||||
kubectl exec -it $(kubectl get pods | fzf | awk '{print $1}'|head -n 1) -- bash
|
||||
fi
|
||||
|
||||
@ -63,15 +66,9 @@ sush() {
|
||||
fi
|
||||
}
|
||||
|
||||
roc() {
|
||||
asso np-farmers
|
||||
aeks np-farmers
|
||||
kubectl port-forward $(kubectl get pods | fzf | awk '{print $1}'|head -n 1) 5001:8080
|
||||
}
|
||||
|
||||
portforward() {
|
||||
asso np-farmers
|
||||
aeks np-farmers
|
||||
qaeks np-farmers
|
||||
kubectl port-forward $(kubectl get pods | fzf | awk '{print $1}'|head -n 1) $1:8080
|
||||
}
|
||||
|
||||
@ -92,7 +89,7 @@ refresh_sure_db() {
|
||||
createdb -U sure surepreme
|
||||
psql -U sure surepreme -c "CREATE EXTENSION postgis"
|
||||
pg_restore -d surepreme /tmp/qa_farmers_latest.pgdump
|
||||
rm /tmp/qa_farmers_latest.pgdump
|
||||
#rm /tmp/qa_farmers_latest.pgdump
|
||||
echo "Database `surepreme` successfully restores from QA data"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user