powershell配置自启动脚本
1246 2023-04-24 15:33
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\Users\21> $PsHome
C:\Windows\System32\WindowsPowerShell\v1.0
PS C:\Users\21> Test-Path $Profile
False
PS C:\Users\21> New-Item –Path $Profile –Type File –Force
Directory: D:\Users\21\Documents\WindowsPowerShell
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2023/4/24 15:31 0 Microsoft.PowerShell_profi
PS C:\Users\21> notepad $Profile
PS C:\Users\21>
记事本写入
Set-Alias -Name idf32 -Value D:\esp\esp-idf\export.ps1
保存
全部评论