I wish Get-ChildItem -force
to get executed when I type ll
and I have this in my profile.ps1
:
New-Alias -Name ll -Value Get-ChildItem -force
However, when I type ll
, I can see that the -force
argument is not being used. What am I doing wrong?
Edit: What I really wish to achieve is to show all files in a folder, even if they're hidden. And I wish to bind this to ll
.