/usr/share/elvis/scripts/sfb.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 18 19 20 21 22 23 24 25 26 27 28 | "Visual directory display a.k.a split file browse
"Written by Dan Fandrich <dan@fch.wimsey.bc.ca>
switch os
case unix alias sfbrowse split +"fbrowsetweak !*" !ls !*
case win32 alias sfbrowse split +"fbrowsetweak !*" !dir /b /a-d !*
"What are the equivalent commands for OS/2 and whatever other OSes are valid?
default alias sfbrowse split +"fbrowsetweak !*" !dir !*
alias sfb sfbrowse
alias fbrowsetweak {
"Turn a directory listing into a browsable HTML page
local report=0 nosaveregexp magicchar=.*
1,$s/.*/<LI><A HREF="&">&<\/A>/
local d="!*"
if d=="" || d=="."
then eval set d=(getcwd())
1
eval insert <HTML><HEAD><TITLE>(d)</TITLE></HEAD><H1>(d)</H1><BODY><MENU>
$a </MENU></HTML>
if !userprotocol
then eval file (d)/
else 1i <!DOCTYPE user protocol>
"Move to the first file so that <tab> will move to the second
1
/HREF
set bufdisplay=html nomod locked
display html
}
|