From 80dc2c3f3da8601aeed70f40611a189806fe7734 Mon Sep 17 00:00:00 2001 From: Taken Date: Wed, 26 Feb 2025 18:23:53 +0100 Subject: [PATCH] Updated profile --- Microsoft.PowerShell_profile.ps1 | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 08e6715..9e97829 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -14,14 +14,6 @@ if (Get-Module -ListAvailable -Name gsudoModule) Write-Host "gsudoModule module not found" -ForegroundColor Red } -if (Get-Module -ListAvailable -Name Terminal-Icons) -{ - Import-Module -Name Terminal-Icons -} else -{ - Write-Host "Terminal-Icons module not found" -ForegroundColor Red -} - # aliases Set-Alias -Name reboot -Value Restart-Computer Set-Alias -Name shutdown -Value Stop-Computer @@ -234,4 +226,8 @@ if (Get-Command -Name starship -ErrorAction SilentlyContinue) { Invoke-Expression (&starship init powershell) } +if (Get-Command -Name direnv -ErrorAction SilentlyContinue) +{ + Invoke-Expression "$(direnv hook pwsh)" +} randomscript