blob: ea098d664e6e48846c4b0e0de9f45678ea092ab4 (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
function lscmd --description "View installed useful command line programs"
if not functions -q is-installed
echo "No is-installed function defined."
return 1
end
set -f compress 'libarchive' 'bzip3' 'p7zip' 'unrar'
set -f crypt 'age'
set -f shell 'exa' 'tmux' 'walk' 'moar' 'most' 'fcp' 'b3sum'
set -f editor 'neovim' 'micro' 'nano'
set -f file 'mc' 'nnn'
set -f bin 'hexyl'
set -f text 'bat' 'ripgrep' 'sd' 'ugrep' 'grex' 'since' 'difftastic' 'vbindiff'
set -f sys 'htop' 'btop' 'duf' 'ncdu' 'procs'
set -f sec 'hashcat'
set -f img 'viu' 'timg'
set -f markdown 'glow' 'mdcat'
set -f db 'csview' 'textql'
set -f dev 'strace' 'lurk'
set -f www 'links'
set -f mail 'aerc'
set -f gopher 'ncgopher'
set -f gemini 'clagrange' 'amfora' 'ncgopher'
set -f tox 'toxic'
set -f ftp 'lftp'
set -f http 'curlie' 'xh' 'hurl'
set -f mirror 'wget' 'gemget' 'httrack' 'crawley'
set -f dns 'doggo' 'dog'
set -f netmon 'bandwhich' 'iftop' 'netscanner' 'trippy' 'nload' 'dnstop'
set -f netsec 'nmap' 'ngrep' 'rustscan' 'ssldump'
set -f sync 'rsync'
set -f man 'tldr'
set -f sound 'sox' 'mp3gain'
set -f graphics 'graphicsmagick'
set -f xorg 'xdotool' 'yank'
set -f -a mul $img $sound $graphics
set -f -a net $www $mail $gopher $gemini $tox $ftp $http $mirror $dns $netmon $netsec
set -f -a all $net $mul $compress $crypt $shell $editor $file $bin $text $sys $sec $markdown $db $dev $sync $man $xorg
for element in (string join0 $all | sort -z | uniq -z | string split0)
if is-installed $element
set_color green
printf $element
set_color normal
else
set_color red
printf $element
set_color normal
end
printf ' '
end
printf '\n'
end
|