diff options
| author | Ibrahim Muftee <ibrahim@muftee.net> | 2025-08-08 15:27:40 -0500 |
|---|---|---|
| committer | Ibrahim Muftee <ibrahim@muftee.net> | 2026-07-01 00:23:31 -0400 |
| commit | bafef280804f04308040ec5d92fb4ada0ff8a68e (patch) | |
| tree | 47dbe5bf87351607d47cd16b386ca4b6b9d511e6 | |
| parent | d2f79aca9c97d7899b6ba90d9a9d9c639bb2683e (diff) | |
feat(powershell): remove slow profile configs
| -rw-r--r-- | dot_config/powershell/Microsoft.PowerShell_profile.ps1 | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/dot_config/powershell/Microsoft.PowerShell_profile.ps1 b/dot_config/powershell/Microsoft.PowerShell_profile.ps1 index c1935ad..6fc61eb 100644 --- a/dot_config/powershell/Microsoft.PowerShell_profile.ps1 +++ b/dot_config/powershell/Microsoft.PowerShell_profile.ps1 @@ -8,34 +8,16 @@ $env:EDITOR="nvim" $env:path += ";$env:HOMEPATH\Scripts" # Use some cool icons -Import-Module -Name Terminal-Icons +# Import-Module -Name Terminal-Icons # Git autocompletion for Powershell -Import-Module -Name posh-git - -# Fuzzy find my project files (this is really slow, find better implementation later) -Set-PSReadlineKeyHandler -Key "Ctrl+f" -ScriptBlock { - $codepathdata = $(Join-Path "C:" $env:HOMEPATH "\Repos\data") - $codepathportal = $(Join-Path "C:" $env:HOMEPATH "\Repos\portal") - $codepathautomation = $(Join-Path "C:" $env:HOMEPATH "\Repos\automation") - $codepathcelery = $(Join-Path "C:" $env:HOMEPATH "\Repos\celery") - $configpath = $(Join-Path "C:" $env:HOMEPATH "\.config\") - $localsharepath = $(Join-Path "C:" $env:HOMEPATH "\.local\share\") - $obsidianvaultpath = $(Join-Path "C:" $env:HOMEPATH "\Documents\Vaults\") - Invoke-Expression "cd $(fd . $codepathdata $codepathportal $codepathautomation $codepathcelery $localsharepath $configpath $obsidianvaultpath -t d -d 1 | fzf)" - - # Next two lines sends an 'enter' key - Add-Type -AssemblyName System.Windows.Forms - [System.Windows.Forms.SendKeys]::SendWait("{ENTER}") -} +# Import-Module -Name posh-git # Aliases if (Get-Command -Name 'nvim' -CommandType 'Application' -ErrorAction SilentlyContinue) { if (Get-Command -Name 'poetry' -CommandType 'Application' -ErrorAction SilentlyContinue) { # Can't create an "alias" with CLI args function pn() { & poetry run nvim . } - function prun() { & poetry run } - function pis() { & poetry install --with dev --sync} } } |
