nixpkgs/nixos/modules/programs/bash/blesh.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
420 B
Nix
Raw Normal View History

{
lib,
config,
pkgs,
...
}:
2022-12-06 21:23:25 +01:00
let
cfg = config.programs.bash.blesh;
in
{
2022-12-06 21:23:25 +01:00
options = {
programs.bash.blesh.enable = lib.mkEnableOption "blesh, a full-featured line editor written in pure Bash";
2022-12-06 21:23:25 +01:00
};
config = lib.mkIf cfg.enable {
programs.bash.interactiveShellInit = lib.mkBefore ''
source ${pkgs.blesh}/share/blesh/ble.sh
2022-12-06 21:23:25 +01:00
'';
};
meta.maintainers = with lib.maintainers; [ laalsaas ];
2022-12-06 21:23:25 +01:00
}