mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-05 15:16:23 +01:00
fix recursive line count (lcr)
This commit is contained in:
parent
a2e61d05c2
commit
937562a815
|
@ -790,7 +790,8 @@ def nsp [
|
||||||
def lcr [
|
def lcr [
|
||||||
file_extension: string
|
file_extension: string
|
||||||
] {
|
] {
|
||||||
ls $"**/*.($file_extension)"
|
ls **/*
|
||||||
|
| where name ends-with $".($file_extension)"
|
||||||
| each {|file|
|
| each {|file|
|
||||||
open $file.name
|
open $file.name
|
||||||
| lines --skip-empty
|
| lines --skip-empty
|
||||||
|
|
Loading…
Reference in a new issue