11 lines
166 B
Bash
Executable file
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 "$@"
|