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

17 lines
406 B
Nix
Raw Normal View History

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