How to set eza alias in powershell #687
Replies: 2 comments
-
I believe you have to create a New-Alias -Name ls -Value eza --icons etc... You can run |
Beta Was this translation helpful? Give feedback.
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-Eza As mentioned, you will have to place this code into your profile if you want to persist it for later sessions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I Don't know how to set eza alias in powershell. Can someone tell me how I can set alias in pwsh
Beta Was this translation helpful? Give feedback.
All reactions