📝 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
|
#!/bin/bash
|
||||||
#
|
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
if ! command -v bat &> /dev/null ; then
|
||||||
if ! command -v bat &> /dev/null ; then
|
/usr/bin/dict "${1}" | less
|
||||||
/usr/bin/dict "${1}" | less
|
else
|
||||||
else
|
/usr/bin/dict "${1}" | bat
|
||||||
/usr/bin/dict "${1}" | bat
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue