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