From 2a70030c024cb1a539b7dad813faaa911d5db59d Mon Sep 17 00:00:00 2001 From: Gregory Chamberlain Date: Thu, 24 Sep 2020 01:21:44 +0100 Subject: [PATCH] Show '*' and '.[!.]*' if such files exist --- shfm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shfm b/shfm index 282705c..972025a 100755 --- a/shfm +++ b/shfm @@ -136,7 +136,7 @@ list_print() { end=$((bottom + 1)) mid=$((bottom / 4 < 5 ? 1 : bottom / 4)) - case $1$# in + [ -e "$1" ] || case $1$# in '*1') set -- empty ;; '.[!.]*1') set -- 'no hidden files' esac