mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
users/foo-dogsquared: update Bash config
Also, the Wezterm shell integration is now fixed. Hoorah!
This commit is contained in:
parent
d1b6376948
commit
df589b1915
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user