h-m: add fish

This commit is contained in:
41666 2023-12-16 23:27:11 -05:00
parent c76f70e276
commit 0e9f3f4d88

View file

@ -0,0 +1,23 @@
{ pkgs, ... }: {
programs.fish = {
enable = true;
functions = {
ddg = ''
if count $argv > /dev/null
${pkgs.w3m}/bin/w3m https://lite.duckduckgo.com/lite?q=$argv
else
${pkgs.w3m}/bin/w3m https://lite.duckduckgo.com
end
'';
};
shellAliases = {
vim = "nvim";
vi = "nvim";
ddgo = "${pkgs.w3m} https://lite.duckduckgo.com";
};
};
}