📝 Reformatted def script
This commit is contained in:
parent
421728fd9f
commit
9ea6087905
1 changed files with 5 additions and 8 deletions
13
scripts/def
13
scripts/def
|
|
@ -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 "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue