h-m: add fish
This commit is contained in:
parent
c76f70e276
commit
0e9f3f4d88
1 changed files with 23 additions and 0 deletions
23
home-manager/features/fish.nix
Normal file
23
home-manager/features/fish.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue