feat(psql): add aliases

This commit is contained in:
AJ ONeal
2024-10-12 02:21:15 +00:00
parent 502e3d6aa0
commit b375bd8d7e
4 changed files with 46 additions and 0 deletions

11
postgres-client/README.md Normal file
View File

@@ -0,0 +1,11 @@
---
title: Postgres Client (PSQL alias)
homepage: https://webinstall.dev/psql
tagline: |
Alias for https://webinstall.dev/psql
alias: psql
description: |
See https://webinstall.dev/psql
---
Alias for https://webinstall.dev/psql

View File

@@ -0,0 +1,12 @@
#!/bin/sh
set -e
set -u
__redirect_alias_psql() {
echo "'postgres-client' is an alias for 'psql'"
sleep 2.5
WEBI_HOST=${WEBI_HOST:-"https://webi.sh"}
curl -fsSL "$WEBI_HOST/psql@${WEBI_VERSION-}" | sh
}
__redirect_alias_psql

View File

@@ -0,0 +1,11 @@
---
title: PostgreSQL Client (PSQL alias)
homepage: https://webinstall.dev/psql
tagline: |
Alias for https://webinstall.dev/psql
alias: psql
description: |
See https://webinstall.dev/psql
---
Alias for https://webinstall.dev/psql

View File

@@ -0,0 +1,12 @@
#!/bin/sh
set -e
set -u
__redirect_alias_psql() {
echo "'postgresql-client' is an alias for 'psql'"
sleep 2.5
WEBI_HOST=${WEBI_HOST:-"https://webi.sh"}
curl -fsSL "$WEBI_HOST/psql@${WEBI_VERSION-}" | sh
}
__redirect_alias_psql