#!/usr/bin/env bash
# https://www.reddit.com/r/commandline/comments/q9skbh/how_to_remember_what_applications_you_have/
#< Populates the applist
# cat ~/.local/share/applist | fzf

ls /usr/share/man/man1 2> /dev/null |
    sed -e 's/\.1.*//' |
    xargs whatis 2> /dev/null |
    sed -e '/unknown subject/d' -e 's/  *- / - /' > ~/.local/share/applist