📝 Reformatted def script

This commit is contained in:
z3rOR0ne 2022-12-01 21:47:35 -08:00
parent 421728fd9f
commit 9ea6087905

View file

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