users/foo-dogsquared: add PATH for custom scripts from dotfiles

This commit is contained in:
Gabriel Arazas 2023-05-10 08:59:52 +08:00
parent a5a0399e61
commit bb07f426b3
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -29,7 +29,8 @@ in
# blocking the Wezterm's shell integration by fetching another
# instance of bash-preexec.
programs.atuin.enableBashIntegration = false;
programs.bash.bashrcExtra = ''
programs.bash = {
bashrcExtra = ''
source ${pkgs.wezterm}/etc/profile.d/wezterm.sh
if [[ :$SHELLOPTS: =~ :(vi|emacs): ]]; then
@ -37,6 +38,9 @@ in
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
# it to easily backup the certain files which is most likely what we're