auto run unfound commands with comma

This commit is contained in:
xinyangli 2023-07-22 22:56:46 +08:00
parent 07c569de37
commit 8f0971ab2b
7 changed files with 29 additions and 41 deletions

View file

@ -5,6 +5,15 @@
./zellij.nix
./vim.nix
];
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
substituters = "https://cache.nixos.org https://mirrors.ustc.edu.cn/nix-channels/store https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store https://cache.nixos.org/ https://cuda-maintainers.cachix.org";
trusted-public-keys = "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=";
};
home.packages = with pkgs; [
dig
du-dust # du + rust

View file

@ -26,6 +26,9 @@
echo -n "<🚀lv$SHLVL>"
end
end
function fish_command_not_found
${pkgs.comma}/bin/comma $argv
end
'';
functions = {
gitignore = "curl -sL https://www.gitignore.io/api/$argv";