summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-12-07 18:47:36 +0100
committerGitHub <noreply@github.com>2022-12-07 18:47:36 +0100
commit082ccd0a6d8f715dd5c0b4282ac231bf8a27b121 (patch)
tree4074d5b9e365e05144889184fd4aef88b966739b /nixos
parent268b4873e8315ce0863125bb94ffb2e0f44b15e6 (diff)
parentcbf4a44852ceed7e48eb6ee2d959df17e053377a (diff)
Merge pull request #202369 from laalsaas/blesh
Diffstat (limited to 'nixos')
-rw-r--r--nixos/doc/manual/from_md/release-notes/rl-2305.section.xml9
-rw-r--r--nixos/doc/manual/release-notes/rl-2305.section.md2
-rw-r--r--nixos/modules/module-list.nix1
-rw-r--r--nixos/modules/programs/bash/blesh.nix16
4 files changed, 27 insertions, 1 deletions
diff --git a/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
index 914be23576e0..61daeac86a64 100644
--- a/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
+++ b/nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
@@ -22,7 +22,14 @@
</section>
<section xml:id="sec-release-23.05-new-services">
<title>New Services</title>
- <itemizedlist spacing="compact">
+ <itemizedlist>
+ <listitem>
+ <para>
+ <link xlink:href="https://github.com/akinomyoga/ble.sh">blesh</link>,
+ a line editor written in pure bash. Available as
+ <link linkend="opt-programs.bash.blesh.enable">programs.bash.blesh</link>.
+ </para>
+ </listitem>
<listitem>
<para>
<link xlink:href="https://github.com/junegunn/fzf">fzf</link>,
diff --git a/nixos/doc/manual/release-notes/rl-2305.section.md b/nixos/doc/manual/release-notes/rl-2305.section.md
index 3640cf8e963e..f9c76b02f891 100644
--- a/nixos/doc/manual/release-notes/rl-2305.section.md
+++ b/nixos/doc/manual/release-notes/rl-2305.section.md
@@ -14,6 +14,8 @@ In addition to numerous new and upgraded packages, this release has the followin
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
+- [blesh](https://github.com/akinomyoga/ble.sh), a line editor written in pure bash. Available as [programs.bash.blesh](#opt-programs.bash.blesh.enable).
+
- [fzf](https://github.com/junegunn/fzf), a command line fuzzyfinder. Available as [programs.fzf](#opt-programs.fzf.fuzzyCompletion).
## Backward Incompatibilities {#sec-release-23.05-incompatibilities}
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix
index dd85890a5568..24dd30e15750 100644
--- a/nixos/modules/module-list.nix
+++ b/nixos/modules/module-list.nix
@@ -135,6 +135,7 @@
./programs/bandwhich.nix
./programs/bash/bash.nix
./programs/bash/bash-completion.nix
+ ./programs/bash/blesh.nix
./programs/bash/ls-colors.nix
./programs/bash/undistract-me.nix
./programs/bash-my-aws.nix
diff --git a/nixos/modules/programs/bash/blesh.nix b/nixos/modules/programs/bash/blesh.nix
new file mode 100644
index 000000000000..0a9aa6242425
--- /dev/null
+++ b/nixos/modules/programs/bash/blesh.nix
@@ -0,0 +1,16 @@
+{ lib, config, pkgs, ... }:
+with lib;
+let
+ cfg = config.programs.bash.blesh;
+in {
+ options = {
+ programs.bash.blesh.enable = mkEnableOption (mdDoc "blesh");
+ };
+
+ config = mkIf cfg.enable {
+ programs.bash.interactiveShellInit = mkBefore ''
+ source ${pkgs.blesh}/share/ble.sh
+ '';
+ };
+ meta.maintainers = with maintainers; [ laalsaas ];
+}