Commit 41b8a3b3f487
Changed files (1)
home
modules
home/modules/lazyworktree.nix
@@ -54,10 +54,15 @@ in
config = mkIf cfg.enable {
programs =
let
- # Source upstream shell functions from the package
- sourceUpstream = ''
+ # Source upstream shell functions from the package (per-shell)
+ sourceUpstreamZsh = ''
# lazyworktree shell integration
- source ${cfg.package}/share/lazyworktree/functions.shell
+ source ${cfg.package}/share/lazyworktree/functions.zsh
+ '';
+
+ sourceUpstreamBash = ''
+ # lazyworktree shell integration
+ source ${cfg.package}/share/lazyworktree/functions.bash
'';
# Alias definitions that wrap worktree_jump
@@ -176,12 +181,12 @@ in
in
{
bash.initExtra = mkIf cfg.enableBashIntegration ''
- ${sourceUpstream}
+ ${sourceUpstreamBash}
${aliasDefinitions}
'';
zsh.initContent = mkIf cfg.enableZshIntegration ''
- ${sourceUpstream}
+ ${sourceUpstreamZsh}
${aliasDefinitions}
${zshAliasCompletions}
${dynamicAliasesSetup}