Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
: ${GUI_CHOOSER:=true}
: ${NUM_LINES:=25}
: ${CHOOSER_PROMPT:=Choose an entry}
: ${CHOOSER_SEARCH:=}
joinArray() {
IFS=$'\n'; echo "$*"
}