Compare commits

..

No commits in common. "e9ff47bab60bbc4adeb61a34e13111347357b813" and "ae75c9392162c65325b4f6c2f0ccecddc4134bce" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View File

@ -6,7 +6,7 @@ Simple script that uses simple dictionary to get the most liked/correct definiti
```bash ```bash
$ udict smh $ 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 ## Installation

4
udict
View File

@ -7,6 +7,4 @@ term="$@"
term="$(printf '%s\n' "${term}" | sed 's/ /\\/g' )" term="$(printf '%s\n' "${term}" | sed 's/ /\\/g' )"
curl -s "https://api.urbandictionary.com/v0/define?term=${term}" | curl -s "https://api.urbandictionary.com/v0/define?term=${term}" | jq -r '.list[0].definition'
jq -r '.list[0].definition' |
sed 's/\[/\o033[1m/g;s/\]/\o033[0m/g'