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