Browse Source

compromise with ls alias to use unkown; so that more works - but now shell * expansion doesn't just for that alias

master
Julian Noble 2 years ago
parent
commit
f9408c2f3e
  1. 5
      src/modules/punk-0.1.tm

5
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?

Loading…
Cancel
Save