Alte Files / Folder vor anlegen der Links löschen.

This commit is contained in:
2022-12-13 20:13:36 +01:00
parent 137835b9a1
commit 188343fec2

View File

@@ -123,8 +123,10 @@ do {
$decision = $Host.UI.PromptForChoice('Winfetch', 'Soll Winfetch eingerichtet werden?' , $choices, 1)
if ($decision -eq 0) {
Install-Script winfetch
Remove-Item -Recurse -Force ~/.config/winfetch
mkdir ~/.config/winfetch
New-Item -Path "~/.config/winfetch/config.ps1" -ItemType SymbolicLink -Value "~/.winconfig/config.ps1"
Remove-Item -Force "~/Documents/WindowsPowerShell/profile.ps1"
New-Item -Path "~/Documents/WindowsPowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1"
Read-Host "Bitte das Terminal / Powershell neu starten damit Winfetch funktioniert."