summary refs log tree commit diff
path: root/home/.local/bin/wiki
blob: c430809816ab53092fbbb0fa26efdd7032b99750 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh
set -eu

curl -Gs 'https://en.wikipedia.org/w/api.php' \
    -d 'action=opensearch' --data-urlencode "search=$1" \
    | jq -r '.[2][]' \
    | sed -En "s/^([^ ]| [^i]| i[^s]| is[^ ])* is /It's not a $1, what we need is /p"
June McEnroe 2012-07-02Make gs output terseJune McEnroe 2012-07-02Fix unclutter cursor flicker on GTK appsJune McEnroe 2012-05-05Start unclutter at loginJune McEnroe 2012-05-05Task stuffJune McEnroe 2012-05-05Float QEMU windowsJune McEnroe 2012-05-05Remove unreversible minimize keymapJune McEnroe 2012-05-04Start gnome-keyring-daemon at loginJune McEnroe