From b18031ffc48e126a33c7ffd1309a0e4fd9e07319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Fri, 9 Feb 2024 22:52:17 +0100 Subject: [PATCH] nu: add l as ls in a grid --- shell/.config/nushell/config.nu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/.config/nushell/config.nu b/shell/.config/nushell/config.nu index 3a51950..314254f 100644 --- a/shell/.config/nushell/config.nu +++ b/shell/.config/nushell/config.nu @@ -825,3 +825,7 @@ def gst [] { def glog [] { git log --pretty=%h»¦«%aN»¦«%s»¦«%aD | lines | split column "»¦«" sha1 committer desc merged_at } + +def l [pattern? = '.'] { + ls $pattern | grid -c +}