How to set eza alias in powershell #687
Replies: 2 comments 1 reply
|
I believe you have to create a New-Alias -Name ls -Value eza --icons etc...You can run |
0 replies
|
That will not work since Set-Alias does not support parameters directly. function Invoke-Eza {
param (
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$Args
)
eza --icons=always @Args
}
Set-Alias ls Invoke-EzaAs mentioned, you will have to place this code into your profile if you want to persist it for later sessions. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I Don't know how to set eza alias in powershell. Can someone tell me how I can set alias in pwsh
All reactions