From f9408c2f3e5cfbb969711b467573ca3a31064d63 Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Thu, 27 Apr 2023 03:35:47 +1000 Subject: [PATCH] compromise with ls alias to use unkown; so that more works - but now shell * expansion doesn't just for that alias --- src/modules/punk-0.1.tm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/punk-0.1.tm b/src/modules/punk-0.1.tm index 65944c17..b29c1b56 100644 --- a/src/modules/punk-0.1.tm +++ b/src/modules/punk-0.1.tm @@ -515,8 +515,11 @@ namespace eval punk { interp alias {} gconf {} git config --global -l #---------------------------------------------- + # ls aliases - note that tcl doesn't exand * but sh_xxx functions pass to sh -c allowing shell expansion interp alias {} l {} sh_runout -n ls -A ;#plain text listing - interp alias {} ls {} sh_runout -n ls -AF --color=always + #interp alias {} ls {} sh_runout -n ls -AF --color=always + interp alias {} ls {} unknown ls -AF --color=always ;#use unknown to use terminal and allow | more | less + #note that shell globbing with * won't work on unix systems when using unknown/exec interp alias {} lw {} sh_runout -n ls -AFC --color=always ;#wide listing (use A becaus no extra info on . & ..) interp alias {} ll {} sh_runout -n ls -laFo --color=always ;#use a instead of A to see perms/owner of . & .. # -v for natural number sorting not supported on freeBSD. Todo - test at startup and modify aliases?