Skip to content

Commit 2705d71

Browse files
committed
updated windots setup script
1 parent ed17bda commit 2705d71

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Functions.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ function Install-WingetApps {
105105

106106
function Enable-ScoopBuckets {
107107
param ([array]$List)
108-
109108
$scoopBucketDir = "$(Split-Path (Get-Command scoop.ps1).Source | Split-Path)\buckets"
110109
foreach ($bucket in $List) {
111110
if (!(Test-Path -PathType Container -Path "$scoopBucketDir\$bucket")) {
@@ -185,7 +184,7 @@ function Install-GitHub-Extensions {
185184
$extRepo = $ext.Repo
186185
if (-not ($installed | Select-String "$extRepo")) {
187186
gum spin --title="Installing extension $extName..." -- gh extension install "$extRepo" --force
188-
Write-PrettyOutput -Process "github" -Entry "extension:" -Entry2 "$extName" -Message "installed successfully."
187+
Write-PrettyOutput -Process "github" -Entry "extension:" -Entry2 "$extName" -Message "installed successfully." -Extra
189188
}
190189
else {
191190
Write-PrettyOutput -Process "github" -Entry "extension:" -Entry2 "$extName" -Message "already installed. Skipping..." -Extra

Setup.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function Install {
213213
if (Get-Command nvm -ErrorAction SilentlyContinue) {
214214
Write-PrettyTitle "NVM (Node Version Manager)"
215215
if (!(Get-Command npm -ErrorAction SilentlyContinue)) {
216-
$ltsOrLatest = $(Write-Host "NodeJS not found. Install LTS (y) or latest (n)? "-ForegroundColor Magenta -NoNewline; Read-Host)
216+
$ltsOrLatest = $(Write-Host "NodeJS not found. Install LTS (y) or latest (n)? "-ForegroundColor Cyan -NoNewline; Read-Host)
217217
if ($ltsOrLatest -eq 'y') {
218218
nvm install lts
219219
nvm use lts
@@ -325,7 +325,7 @@ function Install {
325325
# start komorebi
326326
$komorebiProcess = Get-Process -Name komorebi -ErrorAction SilentlyContinue
327327
if ($null -eq $komorebiProcess) {
328-
$startKomorebi = $(Write-Host "Komorebi found. Run Komorebi now (y) or later (n)? " -ForegroundColor Magenta -NoNewline; Read-Host)
328+
$startKomorebi = $(Write-Host "Komorebi found. Run Komorebi now (y) or later (n)? " -ForegroundColor Cyan -NoNewline; Read-Host)
329329
if ($startKomorebi -eq 'y') {
330330
& komorebic start --whkd > $null 2>&1
331331
Write-PrettyOutput -Process "komorebi" -Entry "komorebi with WHKD" -Message "started."
@@ -345,7 +345,7 @@ function Install {
345345
$yasbProcess = Get-Process -Name yasb -ErrorAction SilentlyContinue
346346
if ($null -eq $yasbProcess) {
347347
$yasbShortcutPath = Join-Path -Path $env:APPDATA -ChildPath "Microsoft\Windows\Start Menu\Programs\Yasb.lnk"
348-
$confirmYasbRun = $(Write-Host "Found Yasb. Run now? (y/n) " -ForegroundColor Magenta -NoNewline; Read-Host)
348+
$confirmYasbRun = $(Write-Host "Found Yasb. Run Yasb now? (y/n) " -ForegroundColor Cyan -NoNewline; Read-Host)
349349
if ($confirmYasbRun -eq 'y') {
350350
if (Test-Path $yasbShortcutPath) {
351351
Start-Process -FilePath $yasbShortcutPath > $null 2>&1
@@ -402,4 +402,4 @@ Write-Host "https://github.com/jacquindev/windots" -ForegroundColor "Blue"
402402
Write-Host "- Submit an issue via: " -NoNewline
403403
Write-Host "https://github.com/jacquindev/windots/issues/new" -ForegroundColor "Blue"
404404
Write-Host "- Contact me via email: " -NoNewline
405-
Write-Host "jacquindev@outlook.com" -ForegroundColor "Blue"
405+
Write-Host "jacquindev@outlook.com" -ForegroundColor "Blue"

0 commit comments

Comments
 (0)