Filter your shell history.
sh-history-filter --shell-type bash --history-text "$(cat .bash_history)"
Configuration will be generated automatically in ~/shf.toml
git clone --depth 1 https://github.com/Thaumy/sh-history-filter.git
cd sh-history-filter
cargo build -r
-
Edit
configuration.nix
:
environment.systemPackages = with pkgs; [
nur.repos.thaumy.sh-history-filter
];