cd / ; apropos ;

match #

Script used in many others to call dmenu or pi/fzf/fzy according if it is called from a terminal or not.

#!/bin/sh
# dmenu/pick/fzf/fzy wrapper wether it is called from terminal
# options:
#  -p "prompt"

# dmenu options
l=15
fn="FiraCode-12:antialias=true:autohint=true"
# b&w
nb="#000"
nf="#888"
sb="#fff"
sf="#000"

while getopts 'p:' c
do
	case $c in
		p) p="${OPTARG}" ;;
	esac
done

if [ -n "$TERM" ]; then
	# run from commandline
	#fzy -p "${p}"
	#fzf --prompt="${p}"
	pick
else
	# run from dmenu
	dmenu -i -l $l -fn $fn -nb $nb -nf $nf -sb $sb -sf $sf -p "$p"
fi