git-worktree-switcher: add package option

This commit is contained in:
Mateus Auler
2025-09-28 20:41:30 -03:00
parent f16c774df1
commit bcc9d03d40

View File

@@ -12,17 +12,18 @@ let
shell: shell:
if (shell == "fish") then if (shell == "fish") then
'' ''
${lib.getExe pkgs.git-worktree-switcher} init ${shell} | source ${lib.getExe cfg.package} init ${shell} | source
'' ''
else else
'' ''
eval "$(${lib.getExe pkgs.git-worktree-switcher} init ${shell})" eval "$(${lib.getExe cfg.package} init ${shell})"
''; '';
in in
{ {
options = { options = {
programs.git-worktree-switcher = { programs.git-worktree-switcher = {
enable = lib.mkEnableOption "git-worktree-switcher, switch between git worktrees with speed."; enable = lib.mkEnableOption "git-worktree-switcher, switch between git worktrees with speed.";
package = lib.mkPackageOption pkgs "git-worktree-switcher" { };
}; };
}; };