Use shutil to find fd bin on system path

This commit is contained in:
Eric Torres 2020-06-23 22:47:08 -07:00
parent 6b595f44a3
commit 4d7719af2c

View File

@ -30,7 +30,7 @@ import subprocess
from termcolor import colored
# ========== Constants ==========
FD_BIN = "/usr/bin/fd"
FD_BIN = shutil.which("fd")
FD_OPTS = ["--hidden"]
# Matches 'y' or 'yes' only, ignoring case
USER_RESPONSE_YES = r"^[Yy]{1}([Ee]{1}[Ss]{1})?$"