Skip to content

Commit

Permalink
⚡ perf: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquindev committed Dec 1, 2024
1 parent 45e5ee0 commit 7615a80
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7615a80

Please sign in to comment.