dotfiles/zsh/environment/host/devF/zshrc
2022-05-24 18:56:59 +00:00

15 lines
636 B
Bash

##### Aliases
db_envs=(cadev ildev indev ladev txdev utdev mddev)
# Database Connection
for env in $db_envs ; do
eval "alias psql_$env='psql -d $env -h dev.cpmixkhfrend.us-east-1.rds.amazonaws.com -p 5432 -U ${env}_owner'"
if (( $+commands[pgcli] )); then
eval "alias pg_${env}='pgcli -d $env -h dev.cpmixkhfrend.us-east-1.rds.amazonaws.com -p 5432 -U ${env}_owner'"
fi
done
# List Databases
alias psql_l="psql -h dev.cpmixkhfrend.us-east-1.rds.amazonaws.com -p 5432 -U greenfiling -l"
# Sign-In as limited super user.
alias psql_root="psql -d postgres -h dev.cpmixkhfrend.us-east-1.rds.amazonaws.com -p 5432 -U greenfiling"