/usr/share/elvis/scripts/dict.ex is in elvis-common 2.2.0-11.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | " Use the "dict" program to fetch the definition of a word
alias readDICT {
local nolock
r !dict --html "!2"
try %s/{\([^,}]*\), \([^}]*\)}/{\1}, {\2}/g
try %s/{\([^,}]*\), \([^}]*\)}/{\1}, {\2}/g
try %s/{\([^,}]*\), \([^}]*\)}/{\1}, {\2}/g
try %s/{\(\w[[:alpha:] .]*\)}/<a href="dict:\1">\1<\/a>/g
try %s/[Hh][Tt][Tt][Pp]:\/\/[^ ,>")&]*/<a href="&">&<\/a>/g
set bufdisplay=html
}
alias dict {
" Show the definition of a term in a new window
local w="!*"
let w =~ s/ /\\ /ge
eval sp dict:(w)
}
|