h-m/fish: ddg no redirect

This commit is contained in:
noe 2023-12-17 10:14:15 -05:00
parent f7bc60aeb4
commit b243c83c1f

View file

@ -6,9 +6,9 @@
functions = { functions = {
ddg = '' ddg = ''
if count $argv > /dev/null if count $argv > /dev/null
${pkgs.w3m}/bin/w3m +15 "https://lite.duckduckgo.com/lite?q=$argv" ${pkgs.w3m}/bin/w3m +15 "https://lite.duckduckgo.com/lite?kd=-1&q=$argv"
else else
${pkgs.w3m}/bin/w3m https://lite.duckduckgo.com ${pkgs.w3m}/bin/w3m "https://lite.duckduckgo.com/lite?kd=-1"
end end
''; '';
}; };