about summary refs log tree commit diff
path: root/nixos/modules/programs/bash/blesh.nix
blob: b5ca83a883bb0bcea182ea4be5669e656c6102ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ 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";
  };

  config = lib.mkIf cfg.enable {
    programs.bash.interactiveShellInit = lib.mkBefore ''
      source ${pkgs.blesh}/share/blesh/ble.sh
    '';
  };
  meta.maintainers = with lib.maintainers; [ laalsaas ];
}