This may be some simple solution I am missing. I would like to alias the command line:
> ls -lrt
To actually do this:
> Get-ChildItem | Sort-Object -Property LastWriteTime
The issue I see is that the ls
is already aliased to Get-Children
and that resolved prior to any attemps I have made such as:
New-Alias -Name 'ls -lrt' -Value 'Get-ChildItem | Sort-Object -Property LastWriteTime'
Does anyone know a way to do this without harming the previously existing alias of ls
?