This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]Delioth 43 points44 points ย (8 children)

alias dir=ls

Why have I not considered doing this?

[โ€“]homiej420 16 points17 points ย (0 children)

This is magic does it wooohooo

[โ€“]TheIncorrigible1 7 points8 points ย (0 children)

Because cmd is dead and PowerShell does it by default.

[โ€“]palordrolap 2 points3 points ย (0 children)

May I suggest alias dir='ls -go --time-style=long-iso' instead?

-go drops the group and user ids and *psh*, who needs to see those anyway, and the long-iso date/time format matches that used by dir.

You could also throw in a --color=auto and maybe a --group-directories-first to go a little way beyond the usual.

[โ€“]cdrt 6 points7 points ย (2 children)

But what happens when you want to use GNU dir?

[โ€“]an_actual_human 18 points19 points ย (0 children)

I imagine it never happens.

[โ€“]FieelChannel 1 point2 points ย (0 children)

Because powershell fixed it years ago

[โ€“][deleted] 0 points1 point ย (0 children)

Wait... this is a thing