Oh, never mind... I got it now.
After I removed the "ls" alias, I did a "which ls" and found that it's finding an ls.exe in a unix emulation package I installed.
So now in my profile I do:
remove-item alias:ls
function ls ([string] $a) { get-childitem -force -name $a }
----
Kevin Kelleher
more to the question:
I can define functions that do what I want, for example:
function l ([string] $a) { get-childitem -force -name }
but how can I put this in place of the built-in "ls"?
When I do
remove-item alias:ls
it seems to alter, but not remove the "ls" alias. The output...
I'm still getting used to PowerShell, trying to use it as much as possible.
One snag I'm hitting is that my unix background leads me to expect and want some things that I'm having difficulty finding.
For example, I'd like to fix it so that
- 'ls' would mean 'get-childitem -force -name'
-...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.