ChrisTitusTech / powershell-profile

Pretty PowerShell that looks good and functions almost as good as Linux terminal
551 stars 320 forks source link

Set-Alias : Cannot bind argument to parameter 'Value' because it is null. #19

Closed itsRealGray closed 1 year ago

itsRealGray commented 1 year ago

image how do i fix this. explain in with monkey mode on please (if its possible😅). i'm not that expert.

sahil-jindal commented 1 year ago

Hi @itsRealGray, This issue seems similar to issue 4. Please check the thread from this comment. Alternatively, you could comment Set-Alias -Name vim -Value $EDITOR as mentioned in this comment. Then, it shouldn't bother you.

The file must be in C:\Users\<yourusername>\Documents\WindowsPowershell\

Just run this command in Windows Powershell: explorer ($env:USERPROFILE + "\Documents\WindowsPowerShell") This command will open windows file explorer with the folder located. Then, you should see the file Microsoft.PowerShell_profile.ps1. Open the file with Notepad, make changes, then save and exit.

itsRealGray commented 1 year ago

thanks man it worked.

sahil-jindal commented 1 year ago

You're welcome! Now Please close this issue.