summaryrefslogtreecommitdiff
path: root/bin/extra/wd
diff options
context:
space:
mode:
Diffstat (limited to 'bin/extra/wd')
-rwxr-xr-xbin/extra/wd5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/extra/wd b/bin/extra/wd
index 1b56aa6..b0e91a0 100755
--- a/bin/extra/wd
+++ b/bin/extra/wd
@@ -1,6 +1,7 @@
#!/bin/sh
-[ "$1" ] || exit 1
-dict "$1" |
+[ "$1" ] && word="$1" || exit 1
+shift
+dict "$word" $@ |
sed -e '/^ /!d;s/^ //' |
sed -e '/^$/d;s/^[^ ].*$/\o033[1;4;34m&\o033[0m/' |