Make wezterm start in cwd

This commit is contained in:
Julian Mutter 2024-09-25 08:34:49 +02:00
parent 3ac5c39f8f
commit 964b03fedc

View File

@ -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"
'')
];
};
}