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

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