bash -c "$(curl -fsSL https://raw.githubusercontent.com/get-gah/gah/refs/heads/master/tools/install.sh)"
export GAH_UNATTENDED=true
export GAH_DB_URL=https://gist.github.com/vimagick/15b97989cc7dc817c1bd48cae9992ebf/raw/gah-db.json
gah aliases refresh
gah aliases show
# FIXME
gah install cull
# fallback
brew install rashida-thorne/cull/cull
Last active
November 5, 2026 05:33
-
-
Save vimagick/15b97989cc7dc817c1bd48cae9992ebf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "./schema.json", | |
| "aliases": { | |
| "mlr": "johnkerl/miller", | |
| "dnsx": "projectdiscovery/dnsx", | |
| "subfinder": "projectdiscovery/subfinder", | |
| "naabu": "projectdiscovery/naabu", | |
| "cull": "rashida-thorne/cull", | |
| "chatgpt": "kardolus/chatgpt-cli", | |
| "jq": "jqlang/jq" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # See: https://github.com/get-gah/gah/issues/42 | |
| +GAH_DB_URL="${GAH_DB_URL:-https://raw.githubusercontent.com/get-gah/gah-db/refs/heads/master/db.json}" | |
| GAH_DB_FILE="$GAH_CACHE_DIR/db.json" | |
| function http_get() { | |
| local url="$1" | |
| # if curl is available, use it, otherwise use wget. | |
| if command -v curl >/dev/null 2>&1; then | |
| - curl -s "${GITHUB_AUTH_ARGS[@]}" "$url" | |
| + curl -sL "${GITHUB_AUTH_ARGS[@]}" "$url" | |
| else | |
| wget -q -O- "${GITHUB_AUTH_ARGS[@]}" "$url" | |
| fi | |
| } | |
| function fetch_db() { | |
| print_debug "Fetching DB" | |
| - http_get "https://raw.githubusercontent.com/get-gah/gah-db/refs/heads/master/db.json" > "$GAH_DB_FILE" | |
| + http_get "$GAH_DB_URL" > "$GAH_DB_FILE" | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment