fixed syntax error with write-host commands
This commit is contained in:
Kurtis
2025-10-29 00:44:51 +10:00
parent eb60c40b7f
commit d72f8416c6

View File

@@ -6,7 +6,7 @@ If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdenti
}
function Install-Zen {
Write-Head "Installing Zen"
Write-Host "Installing Zen"
winget install Zen-Team.Zen-Browser
}
@@ -25,7 +25,7 @@ function Config-Zen {
}
function Install-FlowLauncher {
Write-Head "Installing Flow Launcher"
Write-Host "Installing Flow Launcher"
winget install Flow-Launcher.Flow-Launcher
}
@@ -43,25 +43,25 @@ function Config-FlowLauncher {
}
function Install-NextCloud {
Write-Head "Installing Nextcloud"
Write-Host "Installing Nextcloud"
winget install Nextcloud.NextcloudDesktop
}
function Install-SteamLink {
Write-Head "Installing Steamlink"
Write-Host "Installing Steamlink"
winget install Valve.SteamLink
}
function Install-Clink {
Write-Head "Installing Clink"
Write-Host "Installing Clink"
winget install chrisant996.Clink
}
function Install-Starship {
Write-Head "running Nerdfont installer"
Write-Host "running Nerdfont installer"
& ([scriptblock]::Create((iwr 'https://to.loredo.me/Install-NerdFont.ps1')))
winget install Starship.Starship
Write-Head "Configuring CMD"
Write-Host "Configuring CMD"
$folderPath = "$ENV:APPDATALOCAL\clink"
if (-not (Test-Path $folderPath -PathType Container)) {
New-Item -Path $folderPath -ItemType Directory -Force
@@ -70,7 +70,7 @@ function Install-Starship {
Write-Host "Folder '$folderPath' already exists."
}
Set-Content -Path "$folderPath\starship.lua" -Value "load(io.popen('starship init cmd'):read(`"*a`"))()"
Write-Head "Configuring PowerShell"
Write-Host "Configuring PowerShell"
$folderPath = "$([Environment]::GetFolderPath("MyDocuments"))\WindowsPowerShell"
if (-not (Test-Path $folderPath -PathType Container)) {
New-Item -Path $folderPath -ItemType Directory -Force