From 20fbf57ec94f3ee56e9d7a80e8bde607dbb7fc28 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 11 May 2024 00:04:52 -0700 Subject: [PATCH] added discord reinstall function --- pwsh/Microsoft.PowerShell_profile.ps1 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pwsh/Microsoft.PowerShell_profile.ps1 b/pwsh/Microsoft.PowerShell_profile.ps1 index 7d605bd..123b56c 100644 --- a/pwsh/Microsoft.PowerShell_profile.ps1 +++ b/pwsh/Microsoft.PowerShell_profile.ps1 @@ -234,6 +234,23 @@ function winutil { sudo "irm https://christitus.com/win | iex" } +# Discord Install/Reinstall with vencord +Remove-Item $HOME\AppData\Local\Discord +Remove-Item $HOME\AppData\Roaming\discord +function "discord-ven install" { +winget install -e --id Discord.Discord +Invoke-WebRequest -Uri 'https://github.com/Vencord/Installer/releases/latest/download/VencordInstallerCli.exe' -OutFile$ +./VencordInstallerCli.exe +Remove-Item VencordInstallerCli.exe +} + +# Discord Install/Reinstall Vanilla +function "discord install" { +Remove-Item $HOME\AppData\Local\Discord +Remove-Item $HOME\AppData\Roaming\discord +winget install -e --id Discord.Discord +} + # Enhanced PowerShell Experience Set-PSReadLineOption -Colors @{ Command = 'Yellow'