notes/scripts/def
2022-11-29 02:26:19 -08:00

14 lines
154 B
Bash
Executable file

#!/bin/bash
#
main() {
if ! command -v bat &> /dev/null ; then
/usr/bin/dict "${1}" | less
else
/usr/bin/dict "${1}" | bat
fi
}
main "$@"