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