forked from crony/udict
Compare commits
No commits in common. "720d5121d9184d74e62669afa680f43b70644532" and "5e522c78e81242c133e1cc1033740afbba4d62ae" have entirely different histories.
720d5121d9
...
5e522c78e8
@ -6,7 +6,7 @@ Simple script that uses simple dictionary to get the most liked/correct definiti
|
||||
|
||||
```bash
|
||||
$ udict smh
|
||||
meaning, "shaking my head", smh is typically used when something is obvious, plain old stupid, or disappointment.
|
||||
meaning, "[shaking my head]", smh is typically used when something is obvious, [plain old stupid], or [disappointment].
|
||||
```
|
||||
|
||||
## Installation
|
||||
|
4
udict
4
udict
@ -7,6 +7,4 @@ term="$@"
|
||||
|
||||
term="$(printf '%s\n' "${term}" | sed 's/ /\\/g' )"
|
||||
|
||||
curl -s "https://api.urbandictionary.com/v0/define?term=${term}" |
|
||||
jq -r '.list[0].definition' |
|
||||
sed 's/\[/\o033[1m/g;s/\]/\o033[0m/g'
|
||||
curl -s "https://api.urbandictionary.com/v0/define?term=${term}" | jq -r '.list[0].definition'
|
||||
|
Loading…
Reference in New Issue
Block a user