From 7615a809193d5b77f9a2bea3f422c539cb7f7c15 Mon Sep 17 00:00:00 2001 From: Jacquin Moon Date: Sun, 1 Dec 2024 15:31:54 +0700 Subject: [PATCH] :zap: perf: cleanup --- Profile.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Profile.ps1 b/Profile.ps1 index e4baec2..47f9b5f 100644 --- a/Profile.ps1 +++ b/Profile.ps1 @@ -26,11 +26,9 @@ if (Get-Command 'oh-my-posh' -ErrorAction SilentlyContinue) { } | Out-Null } -# Set alias for `Git` before import `Posh-Git` module -Set-Alias -Name 'g' -Value 'git' # Posh Modules -$PoshModules = @('posh-git', 'powershell-yaml', 'Microsoft.PowerShell.SecretManagement', 'Microsoft.PowerShell.SecretStore', 'Terminal-Icons') +$PoshModules = @('powershell-yaml', 'Microsoft.PowerShell.SecretManagement', 'Microsoft.PowerShell.SecretStore', 'Terminal-Icons') foreach ($module in $PoshModules) { if (Get-Module -ListAvailable -Name "$module" -ErrorAction SilentlyContinue) { Register-EngineEvent -SourceIdentifier PowerShell.OnIdle -MaxTriggerCount 1 -Action { Import-Module "$module" -Global } | Out-Null