Merge pull request #202369 from laalsaas/blesh

authored by

Sandro and committed by
GitHub
082ccd0a 268b4873

+27 -1
+8 -1
nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
··· 22 22 </section> 23 23 <section xml:id="sec-release-23.05-new-services"> 24 24 <title>New Services</title> 25 - <itemizedlist spacing="compact"> 25 + <itemizedlist> 26 + <listitem> 27 + <para> 28 + <link xlink:href="https://github.com/akinomyoga/ble.sh">blesh</link>, 29 + a line editor written in pure bash. Available as 30 + <link linkend="opt-programs.bash.blesh.enable">programs.bash.blesh</link>. 31 + </para> 32 + </listitem> 26 33 <listitem> 27 34 <para> 28 35 <link xlink:href="https://github.com/junegunn/fzf">fzf</link>,
+2
nixos/doc/manual/release-notes/rl-2305.section.md
··· 14 14 15 15 <!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. --> 16 16 17 + - [blesh](https://github.com/akinomyoga/ble.sh), a line editor written in pure bash. Available as [programs.bash.blesh](#opt-programs.bash.blesh.enable). 18 + 17 19 - [fzf](https://github.com/junegunn/fzf), a command line fuzzyfinder. Available as [programs.fzf](#opt-programs.fzf.fuzzyCompletion). 18 20 19 21 ## Backward Incompatibilities {#sec-release-23.05-incompatibilities}
+1
nixos/modules/module-list.nix
··· 135 135 ./programs/bandwhich.nix 136 136 ./programs/bash/bash.nix 137 137 ./programs/bash/bash-completion.nix 138 + ./programs/bash/blesh.nix 138 139 ./programs/bash/ls-colors.nix 139 140 ./programs/bash/undistract-me.nix 140 141 ./programs/bash-my-aws.nix
+16
nixos/modules/programs/bash/blesh.nix
··· 1 + { lib, config, pkgs, ... }: 2 + with lib; 3 + let 4 + cfg = config.programs.bash.blesh; 5 + in { 6 + options = { 7 + programs.bash.blesh.enable = mkEnableOption (mdDoc "blesh"); 8 + }; 9 + 10 + config = mkIf cfg.enable { 11 + programs.bash.interactiveShellInit = mkBefore '' 12 + source ${pkgs.blesh}/share/ble.sh 13 + ''; 14 + }; 15 + meta.maintainers = with maintainers; [ laalsaas ]; 16 + }