check_finger_access() { local command="$1" shift termux-fingerprint | grep -q "AUTH_RESULT_SUCCESS" && { echo -e "\\n\\e[32m> ACCESS GRANTED <\\e[0m\\n" command $command "$@" } || { echo -e "\\n\\e[31m> ACCESS DENIED <\\e[0m\\n" return 1 } } check_finger_access # Create aliases that require fingerprint #alias nano='check_finger_access nano' #alias bash='check_finger_access bash'