users/foo-dogsquared: update Bash config

Also, the Wezterm shell integration is now fixed. Hoorah!
This commit is contained in:
Gabriel Arazas 2023-06-24 10:27:13 +08:00
parent d1b6376948
commit df589b1915
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -29,24 +29,14 @@ in
# blocking the Wezterm's shell integration by fetching another
# instance of bash-preexec.
programs.atuin = {
enableBashIntegration = false;
settings = {
auto_sync = true;
sync_address = "http://atuin.plover.foodogsquared.one";
sync_frequency = "10m";
};
};
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
'';
sessionVariables.PATH = "${config.home.mutableFile."library/dotfiles".path}/bin\${PATH:+:$PATH}";
};
programs.bash.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