![]() ![]() To be honest with you though I wouldn't bother. but you could easily add that to the function.Īctually, this is a rather naive solution, but hopefully it will head you in the right direction if you decide to pursue it. This solution would be a little limited since it would not handle any fanciness like -Include, -Exclude, -Filter, -Recurse, etc. ![]() Then to ls the directories in a folder: gcc C:\ New-Alias -Name gcc -value Get-ChildContainer -force You could put this in your profile: function Get-ChildContainer On further investigation, I don't believe there is a more terse way to do this short of creating your own function and alias. I'll see if I can find a way to use -filter too. You could certainly put a function and an alias in your profile if you wanted to reduce the verbosity. Thus, ls -lrt will give a long listing, oldest first, which is handy for seeing which files in a large directory have recently been changed.There is no doubt that it is a little more wordy than bash or cmd.exe.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |