mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
programs/wezterm: update shell init config
This commit is contained in:
parent
7ea15ea9fa
commit
d1b6376948
@ -2,6 +2,11 @@
|
||||
|
||||
let
|
||||
cfg = config.programs.wezterm;
|
||||
|
||||
shellIntegration = ''
|
||||
source ${pkgs.bash-preexec}/share/bash/bash-preexec.sh
|
||||
source ${cfg.package}/etc/profile.d/wezterm.sh
|
||||
'';
|
||||
in
|
||||
{
|
||||
options.programs.wezterm = {
|
||||
@ -17,8 +22,7 @@ in
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
# This is needed for shell integration and applying semantic zones.
|
||||
environment.interactiveShellInit = ''
|
||||
. ${cfg.package}/etc/profile.d/wezterm.sh
|
||||
'';
|
||||
programs.bash.interactiveShellInit = lib.mkIf config.programs.bash.enable shellIntegration;
|
||||
programs.zsh.interactiveShellInit = lib.mkIf config.programs.zsh.enable shellIntegration;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user