diff --git a/modules/home/wezterm/default.nix b/modules/home/wezterm/default.nix index 466d23e..d5e70ba 100644 --- a/modules/home/wezterm/default.nix +++ b/modules/home/wezterm/default.nix @@ -44,19 +44,15 @@ in return config ''; - # shellIntegration.enableFishIntegration = true; - # theme = "Catppuccin-Mocha"; - # settings = { - # enable_audio_bell = false; - # confirm_os_window_close = 0; # no ask on quit - # }; - # font = { - # package = pkgs.dejavu_fonts; - # name = "DejaVu Sans"; - # size = 12; - # }; }; - systemd.user.sessionVariables.TERMINAL = "wezterm"; + systemd.user.sessionVariables.TERMINAL = "wezterm-start-here"; + + # Otherwise wezterm does not start in directory of parent process + home.packages = [ + (pkgs.writeShellScriptBin "wezterm-start-here" '' + wezterm start --cwd "$PWD" + '') + ]; }; }