2024-12-10 20:26:33 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2022-12-06 21:23:25 +01:00
|
|
|
let
|
|
|
|
cfg = config.programs.bash.blesh;
|
2024-12-10 20:26:33 +01:00
|
|
|
in
|
|
|
|
{
|
2022-12-06 21:23:25 +01:00
|
|
|
options = {
|
2024-04-17 14:37:58 +03:00
|
|
|
programs.bash.blesh.enable = lib.mkEnableOption "blesh, a full-featured line editor written in pure Bash";
|
2022-12-06 21:23:25 +01:00
|
|
|
};
|
|
|
|
|
2024-04-17 14:37:58 +03:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
programs.bash.interactiveShellInit = lib.mkBefore ''
|
2022-08-10 14:58:15 +09:00
|
|
|
source ${pkgs.blesh}/share/blesh/ble.sh
|
2022-12-06 21:23:25 +01:00
|
|
|
'';
|
|
|
|
};
|
2024-04-17 14:37:58 +03:00
|
|
|
meta.maintainers = with lib.maintainers; [ laalsaas ];
|
2022-12-06 21:23:25 +01:00
|
|
|
}
|