dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit b6679656e39479a46b4a013e619731898e2273ac
parent 9866010b6ff56aff01b6433dae547965f8342147
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  2 Nov 2020 18:30:26 +0100

search: add rfc lookup

Diffstat:
M.local/bin/search | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/.local/bin/search b/.local/bin/search @@ -64,6 +64,9 @@ elif regeximatch "$c" '!map'; then elif regeximatch "$c" '!wiki'; then plumb "https://en.wikipedia.org/wiki/Special:Search?search=$(printf '%s' "$c" | sed 's/ *!wiki *//')" +elif regeximatch "$c" '^rfc[0-9][0-9][0-9][0-9]$'; then + plumb "ftp://ftp.rfc-editor.org/in-notes/${c}.txt" + elif regeximatch "$c" '!yt'; then q="$(printf '%s' "$c" | sed "s/ *!yt *//")" #idiotbox="$HOME/code/idiotbox"