~skiqqy/bin

ref: 8ecc22ceaf02ecaad3c432d7083882458da0e8c5 bin/import/stdlib.sh -rwxr-xr-x 333 bytes
8ecc22ceStephen Cochrane Progress on clip 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# Author: Skiqqy
# This script contains functions that I use in my other scripts.
# Note, this script does basic asserts for SOME functions.

# Get input from a user using dmenu, with a displayed prompt.
# Usage: var=$(prompt "some prompt")
prompt () {
	[ ! "$(command -v dmenu)" ] && return 1
	echo "" | dmenu -p "$1"
}