dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit f65a7feb3ac2347743f2f6fd64038e1e753e2723
parent 12cf7936ef753a402e87647f03a4bd713661a7a7
Author: hhvn <dev@hhvn.uk>
Date:   Tue,  8 Feb 2022 12:00:04 +0000

.s/dict .rcrc: use the dictd implementation

Diffstat:
M.rcrc | 13+++++++++++++
D.scripts/dict | 3---
2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/.rcrc b/.rcrc @@ -179,6 +179,19 @@ fn _man { fn man { _man man $* } fn apropos { _man apropos $* } fn makewhatis { _man makewhatis $* } +fn dict { + @{ + if (flag i) { + argv = () + for (arg in $*) { + argv = ($argv `''{printf '%s' $arg | sed -E 's~dict://[^/]*/.:(.*)~\1~'}) + } + } else { + argv = $* + } + builtin dict $argv + } +} # .profile INPUTRC = $home/.config/readline/inputrc diff --git a/.scripts/dict b/.scripts/dict @@ -1,3 +0,0 @@ -#!/bin/sh - -curl dict://dict.org/d:"$@"