f7a195a53b56ef90060bc4c1047e7ea9731f341a

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Use pgcli instead of psql

Diff

 1diff --git a/dot_config/zsh/functions/dpsql b/dot_config/zsh/functions/dpsql
 2index 337b51ec6af4997e761898e3ba5da97cd9ecd665..6641dbdcd878f8098abcc8457896330b3f2a4be0 100644
 3--- a/dot_config/zsh/functions/dpsql
 4+++ b/dot_config/zsh/functions/dpsql
 5@@ -4,4 +4,4 @@
 6 env=${1}
 7 db=${2}
 8 shift 2
 9-PGPASSWORD=$(aws secretsmanager get-secret-value --secret-id ${env}_${db}_db_${db}_user_password --output text --query SecretString) psql $@ -U ${db} -h ${env}-${db}-db.tailf3b9f.ts.net ${db}
10+PGPASSWORD=$(aws secretsmanager get-secret-value --secret-id ${env}_${db}_db_${db}_user_password --output text --query SecretString) pgcli --less-chatty $@ -U ${db} -h ${env}-${db}-db.tailf3b9f.ts.net ${db}