git-worktree-switcher: add package option
This commit is contained in:
@@ -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" { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user