From bb07f426b347ace0bd2ebb0c33bf84cbac664fdc Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 10 May 2023 08:59:52 +0800 Subject: [PATCH] users/foo-dogsquared: add PATH for custom scripts from dotfiles --- users/home-manager/foo-dogsquared/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/users/home-manager/foo-dogsquared/default.nix b/users/home-manager/foo-dogsquared/default.nix index ec7ac307..3be69a1b 100644 --- a/users/home-manager/foo-dogsquared/default.nix +++ b/users/home-manager/foo-dogsquared/default.nix @@ -29,13 +29,17 @@ in # blocking the Wezterm's shell integration by fetching another # instance of bash-preexec. programs.atuin.enableBashIntegration = false; - programs.bash.bashrcExtra = '' - source ${pkgs.wezterm}/etc/profile.d/wezterm.sh + programs.bash = { + bashrcExtra = '' + source ${pkgs.wezterm}/etc/profile.d/wezterm.sh - if [[ :$SHELLOPTS: =~ :(vi|emacs): ]]; then - eval "$(${config.programs.atuin.package}/bin/atuin init bash)" - fi - ''; + if [[ :$SHELLOPTS: =~ :(vi|emacs): ]]; then + eval "$(${config.programs.atuin.package}/bin/atuin init bash)" + fi + ''; + + sessionVariables.PATH = "${config.home.mutableFile."library/dotfiles".path}/bin\${PATH:+:$PATH}"; + }; # My SSH client configuration. It is encouraged to keep matches and extra # configurations included in a separate `config.d/` directory. This enables