Skip to content

Commit

Permalink
Setup pet cli snippets tool (#329)
Browse files Browse the repository at this point in the history
For now, I just have 1 snippet but it's easy to extend in the future.
  • Loading branch information
francishamel authored Nov 8, 2024
1 parent 61db54d commit 0c5990e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions home-manager/flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
./modules/git.nix
./modules/gui.nix
./modules/helix.nix
./modules/pet.nix
./modules/ripgrep.nix
./modules/ssh.nix
./modules/starship.nix
Expand Down
15 changes: 15 additions & 0 deletions home-manager/modules/pet.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ ... }:

{
programs.pet = {
enable = true;

snippets = [
{
command = "bin/rails g migration <name>";
description = "Generate a Rails migration";
tag = [ "rails" ];
}
];
};
}

0 comments on commit 0c5990e

Please sign in to comment.