Trying new function for dotfiles
This commit is contained in:
parent
b870114b80
commit
b23c8fa8b5
15
TODO.md
15
TODO.md
@ -10,4 +10,17 @@
|
||||
[] Syu
|
||||
[] 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
|
20
setup.ps1
20
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
|
||||
|
Loading…
Reference in New Issue
Block a user