dotfiles/zsh/environment/host/devF/zshrc

15 lines
642 B
Bash
Raw Normal View History

2022-05-24 18:42:28 +00:00
##### Aliases
2023-05-24 20:04:05 +00:00
db_envs=(cadev ildev indev ladev txdev utdev mddev dcdev)
# Database Connection
2022-05-24 18:42:28 +00:00
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"