I would like an alias that gives a directory listing in dictionary order with "." files first. It seems that one few ways to accomplish this devoid of writing my own script (which isn't a real problem) is to set the locale with LC_ALL="C"
. (This is per the sorting man page, and multiple other sites).
However setting the locale to "C" can (and does) cause some software installations to break. So my short term solution is akin to this (This is without the additional ls options, for brevity):
alias ls='(LC_ALL="C"; /bin/ls)'
But this does not allow arguments to be "passed" into the subshell.
This of course does not work:
alias ls='(LC_ALL="C"; /bin/ls $*)'
Is there a way to handle this with a simple alias? (As opposed to writing a shell script/function, which I can do).