How do I configure a startup/config script for Powershell?
问题 I am looking to define a set of custom aliases/variables for use every time I launch PowerShell. I am looking for the PowerShell alternative to the .bashrc file. I have tried putting a file named Profile.ps1 in the home directory, but it never runs. What do I need to do to get this file to run? I am using Windows 10. 回答1: I'd start by reading through Microsoft's documentation about_Profiles. I've linked to the 5.1 version of the documentation since that's likely what you have on Windows 10,