From 4df6c6c69d13e4707fcec3292d1b9d6794758507 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Mon, 9 Dec 2024 08:35:01 +0300 Subject: [PATCH] Bash: Add print. --- home/program/bash/module/Print.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 home/program/bash/module/Print.nix diff --git a/home/program/bash/module/Print.nix b/home/program/bash/module/Print.nix new file mode 100644 index 00000000..7699ab7b --- /dev/null +++ b/home/program/bash/module/Print.nix @@ -0,0 +1,9 @@ +{ ... }: { + text = '' + # Printf shortcut. + # Usage: print [TEXT] + function print() { + printf "%s" "''${*}" + } + ''; +}