From 4a9f7be53200ba07124cf627ecf7e407e94bc091 Mon Sep 17 00:00:00 2001 From: Scott McKendry <39483124+scottmckendry@users.noreply.github.com> Date: Sat, 25 May 2024 11:49:39 +1200 Subject: [PATCH] add arch linux module and helper scripts :alembic: (#10) * add ps-arch-wsl module * add install and post install scripts --- Setup.ps1 | 5 +++-- wsl/arch-post-install.sh | 9 +++++++++ wsl/install.ps1 | 9 +++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 wsl/arch-post-install.sh create mode 100644 wsl/install.ps1 diff --git a/Setup.ps1 b/Setup.ps1 index 4cfffaf..26fd9fa 100644 --- a/Setup.ps1 +++ b/Setup.ps1 @@ -41,9 +41,10 @@ $chocoDeps = @( # PS Modules $psModules = @( - "ps-color-scripts" - "PSScriptAnalyzer" "CompletionPredictor" + "PSScriptAnalyzer" + "ps-arch-wsl" + "ps-color-scripts" ) # Set working directory diff --git a/wsl/arch-post-install.sh b/wsl/arch-post-install.sh new file mode 100644 index 0000000..8204a45 --- /dev/null +++ b/wsl/arch-post-install.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Post install script for Arch Linux (on WSL) called by the ps-arch-wsl ps module +# More info at https://github.com/scottmckendry/ps-arch-wsl + +cd ~ +mkdir git -p && cd git +git clone https://github.com/scottmckendry/dots && cd dots +./setup.sh diff --git a/wsl/install.ps1 b/wsl/install.ps1 new file mode 100644 index 0000000..320e7c0 --- /dev/null +++ b/wsl/install.ps1 @@ -0,0 +1,9 @@ +# Simple install script for Arch Linux in WSL +# More info at https://github.com/scottmckendry/ps-arch-wsl + +#requires -RunAsAdministrator +#requires -Modules ps-arch-wsl + +Set-Location -Path $PSScriptRoot +$Credential = Get-Credential -UserName "scott" +Install-ArchWSL -Credential $Credential -PostInstallScript "./arch-post-install.sh"