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,13 +29,17 @@ in
# blocking the Wezterm's shell integration by fetching another # blocking the Wezterm's shell integration by fetching another
# instance of bash-preexec. # instance of bash-preexec.
programs.atuin.enableBashIntegration = false; programs.atuin.enableBashIntegration = false;
programs.bash.bashrcExtra = '' programs.bash = {
source ${pkgs.wezterm}/etc/profile.d/wezterm.sh bashrcExtra = ''
source ${pkgs.wezterm}/etc/profile.d/wezterm.sh
if [[ :$SHELLOPTS: =~ :(vi|emacs): ]]; then if [[ :$SHELLOPTS: =~ :(vi|emacs): ]]; then
eval "$(${config.programs.atuin.package}/bin/atuin init bash)" eval "$(${config.programs.atuin.package}/bin/atuin init bash)"
fi fi
''; '';
sessionVariables.PATH = "${config.home.mutableFile."library/dotfiles".path}/bin\${PATH:+:$PATH}";
};
# My SSH client configuration. It is encouraged to keep matches and extra # My SSH client configuration. It is encouraged to keep matches and extra
# configurations included in a separate `config.d/` directory. This enables # configurations included in a separate `config.d/` directory. This enables