Make wezterm start in cwd
This commit is contained in:
parent
3ac5c39f8f
commit
964b03fedc
@ -44,19 +44,15 @@ in
|
|||||||
|
|
||||||
return config
|
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"
|
||||||
|
'')
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user