mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +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
|
# blocking the Wezterm's shell integration by fetching another
|
||||||
# instance of bash-preexec.
|
# instance of bash-preexec.
|
||||||
programs.atuin = {
|
programs.atuin = {
|
||||||
enableBashIntegration = false;
|
|
||||||
settings = {
|
settings = {
|
||||||
auto_sync = true;
|
auto_sync = true;
|
||||||
sync_address = "http://atuin.plover.foodogsquared.one";
|
sync_address = "http://atuin.plover.foodogsquared.one";
|
||||||
sync_frequency = "10m";
|
sync_frequency = "10m";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.bash = {
|
|
||||||
bashrcExtra = ''
|
|
||||||
source ${pkgs.wezterm}/etc/profile.d/wezterm.sh
|
|
||||||
|
|
||||||
if [[ :$SHELLOPTS: =~ :(vi|emacs): ]]; then
|
programs.bash.sessionVariables.PATH = "${config.home.mutableFile."library/dotfiles".path}/bin\${PATH:+:$PATH}";
|
||||||
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
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user