From b23c8fa8b5a94fe3f6478e46171128b70cf85cd0 Mon Sep 17 00:00:00 2001 From: TheFlyingFool Date: Wed, 12 Jun 2024 15:46:02 -0500 Subject: [PATCH] Trying new function for dotfiles --- TODO.md | 15 ++++++++++++++- setup.ps1 | 20 ++++++++++++++++++-- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index a73845a..4fc02b6 100644 --- a/TODO.md +++ b/TODO.md @@ -10,4 +10,17 @@ [] Syu [] Touch [] Other Linux type mappings? - \ No newline at end of file + + +## NOTES ## + +I believe this is required for utilizing NFS features via powershell: + +PowerShell 7.4.2 + +Add-WindowsCapability -Online -Name Rsat.ServerManager.Tools~~~~0.0.1.0 + +PS C:\Users\nick> Dism /Online /Add-Capability /CapabilityName:Rsat.ServerManager.Tools~~~~0.0.1.0 + +Capability Identity : Rsat.ServerManager.Tools~~~~0.0.1.0 +State : Not Present \ No newline at end of file diff --git a/setup.ps1 b/setup.ps1 index 25101ce..284ea0c 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -50,7 +50,19 @@ function InstallTheApps() { } } +function Get-Windot { + git clone --bare https://git.theflyingfool.com/theflyingfool/dotfiles.git $HOME/.dot + if (!(Test-Path -Path $PROFILE)) { + # Create the profile + New-Item -Type File -Path $PROFILE -Force + } + "`nfunction dot { & git --git-dir=`"$HOME/.dot/`" --work-tree=`"$HOME`" @args }" | Out-File -Append $PROFILE + . $PROFILE + dot checkout + dot config --local status.showUntrackedFiles no + "`n. `"$HOME/windows/Microsoft.PowerShell_profile.ps1`"" | Out-File -Append $PROFILE +} function Update-Profile { #Check For $PROFILE @@ -101,8 +113,9 @@ do { $apps = @( # BASE APPS @{name = '7zip.7zip'}, @{name = '9wzdncrf0083'}, #Facebook messenger - @{name = 'ApacheFriends.Xampp.8.2'}, + #@{name = 'ApacheFriends.Xampp.8.2'}, @{name = 'Bitwarden.Bitwarden'}, + @{name = 'Docker.DockerDesktop '}, @{name = 'Git.Git'}, @{name = 'Google.Chrome'}, #@{name = 'Google.AndroidStudio'}. ## Not currently doing any android dev @@ -134,7 +147,10 @@ do { InstallTheApps $Apps - Update-Profile + # Update-Profile # With moving profile and alias to git this is no longer the way + + # In theory this will grab my dot files and start using them + Get-Windot Write-Host "Make sure SSH Client is installed" Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0