Fuzzy finder
Date: 2020-08-16Last modified: 2023-02-17

Escolhendo um item
$ echo -e "Um\nDois\nTrês" | fzf

Formatação avançada
format_info() {
echo xxxx
}
# para disponibilizar função para subshell
export -f format_info
local opts='--reverse -e -i --tiebreak=begin --prompt=: '
local pwin='--preview-window=down:%40'
fzf $opts $pwin --preview='format_info "$(file {})"' <<< $(dir_contents $1)