Skip to content

Instantly share code, notes, and snippets.

@callingmedic911
Created April 24, 2022 14:47
Show Gist options
  • Save callingmedic911/f73e39494d6c73b9aa5689aa6a498a4a to your computer and use it in GitHub Desktop.
Save callingmedic911/f73e39494d6c73b9aa5689aa6a498a4a to your computer and use it in GitHub Desktop.
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Postgres
# @raycast.mode compact
# Optional parameters:
# @raycast.icon images/postgres.png
# @raycast.argument1 { "type": "text", "placeholder": "cmd" }
# @raycast.argument2 { "type": "text", "placeholder": "port", "optional": true }
# @raycast.packageName Aditya Pandey
# Documentation:
# @raycast.description Wrapper aroung pg_ctl
# @raycast.author Aditya Pandey
# @raycast.authorURL twitter.com/callingmedic911
pg_ctl -D "/opt/homebrew/var/postgres" -o "-F -p ${2:-5432}" "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment