Trying new function for dotfiles

This commit is contained in:
TheFlyingFool 2024-06-12 15:46:02 -05:00
parent b870114b80
commit b23c8fa8b5
2 changed files with 32 additions and 3 deletions

13
TODO.md
View File

@ -11,3 +11,16 @@
[] Touch
[] Other Linux type mappings?
## 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

View File

@ -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