查看 CTT PowerShell 配置指南
本页由 tools/devdocs-generator.ps1 生成,请修改源配置或函数后重新生成。目录保留历史 URL,实际分类以本页为准。
- 稳定 ID:
WPFWinUtilInstallPSProfile - 当前分类:PowerShell 配置文件(仅 7+)
- 源配置:
config/feature.json - 源配置 SHA-256:
956400006e36b3841c7816500199907bb57de94c98a0f05b1e9ee4737a8ab03c
打开 CTT PowerShell 配置文件的官方项目指南,请阅读说明后按需安装。
配置定义
{
"WPFWinUtilInstallPSProfile": {
"Content": "查看 CTT PowerShell 配置指南",
"Description": "打开 CTT PowerShell 配置文件的官方项目指南,请阅读说明后按需安装。",
"category": "PowerShell 配置文件(仅 7+)",
"panel": "2",
"Type": "Button",
"ButtonWidth": "300",
"function": "Invoke-WinUtilInstallPSProfile",
"link": "https://github.com/ChrisTitusTech/powershell-profile"
}
}入口函数
来源:functions/private/Invoke-WinUtilInstallPSProfile.ps1。这里只展示入口,其他被调用函数以仓库源码为准。
function Invoke-WinUtilInstallPSProfile {
$guideUrl = 'https://github.com/ChrisTitusTech/powershell-profile'
try {
Start-Process -FilePath $guideUrl -ErrorAction Stop
} catch {
throw "无法打开 PowerShell 配置指南,请手动访问 $guideUrl 。$($_.Exception.Message)"
}
}