Alte Files / Folder vor anlegen der Links löschen.
This commit is contained in:
@@ -123,8 +123,10 @@ do {
|
|||||||
$decision = $Host.UI.PromptForChoice('Winfetch', 'Soll Winfetch eingerichtet werden?' , $choices, 1)
|
$decision = $Host.UI.PromptForChoice('Winfetch', 'Soll Winfetch eingerichtet werden?' , $choices, 1)
|
||||||
if ($decision -eq 0) {
|
if ($decision -eq 0) {
|
||||||
Install-Script winfetch
|
Install-Script winfetch
|
||||||
|
Remove-Item -Recurse -Force ~/.config/winfetch
|
||||||
mkdir ~/.config/winfetch
|
mkdir ~/.config/winfetch
|
||||||
New-Item -Path "~/.config/winfetch/config.ps1" -ItemType SymbolicLink -Value "~/.winconfig/config.ps1"
|
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"
|
New-Item -Path "~/Documents/WindowsPowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1"
|
||||||
Read-Host "Bitte das Terminal / Powershell neu starten damit Winfetch funktioniert."
|
Read-Host "Bitte das Terminal / Powershell neu starten damit Winfetch funktioniert."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user