fish: add common commands as functions

This commit is contained in:
Christoph Hollizeck 2025-04-30 17:19:59 +02:00
parent 28903629d4
commit 221406d9a6
Signed by: Daholli
GPG key ID: 249300664F2AF2C7

View file

@ -42,6 +42,11 @@ in
ls = "eza -lah --icons --git"; ls = "eza -lah --icons --git";
lss = "ls --total-size"; lss = "ls --total-size";
}; };
functions = {
checkHash = "nix hash to-sri --type sha256 $(nix-prefetch-url --unpack $argv)";
deployNixberry = "nixos-rebuild switch --flake .#nixberry --target-host nixberry --use-remote-sudo --fast";
deployLoptland = "nixos-rebuild switch --flake .#loptland --target-host christophhollizeck.dev --use-remote-sudo --fast";
};
plugins = with pkgs.fishPlugins; [ plugins = with pkgs.fishPlugins; [
{ {
name = "forgit"; name = "forgit";