From 937562a81523da17a3930376e7b82c987bbfca0b Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Wed, 3 Apr 2024 17:56:13 +0200 Subject: [PATCH] fix recursive line count (lcr) --- other/config.nu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/other/config.nu b/other/config.nu index 5589fc9..4d36d1d 100644 --- a/other/config.nu +++ b/other/config.nu @@ -790,7 +790,8 @@ def nsp [ def lcr [ file_extension: string ] { - ls $"**/*.($file_extension)" + ls **/* + | where name ends-with $".($file_extension)" | each {|file| open $file.name | lines --skip-empty