notes/scripts/def
2022-12-01 21:47:35 -08:00

11 lines
166 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 "$@"