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

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

16 lines
412 B
Nix
Raw Normal View History

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