From 5b9095cfdcf7cba439205ee63ace7f0e166fa258 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Tue, 24 Jun 2025 11:25:23 -0500 Subject: feat(powershell): add more directories to fzf --- dot_config/powershell/Microsoft.PowerShell_profile.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dot_config/powershell/Microsoft.PowerShell_profile.ps1 b/dot_config/powershell/Microsoft.PowerShell_profile.ps1 index 78e02ae..f622790 100644 --- a/dot_config/powershell/Microsoft.PowerShell_profile.ps1 +++ b/dot_config/powershell/Microsoft.PowerShell_profile.ps1 @@ -12,11 +12,14 @@ Import-Module -Name posh-git # Fuzzy find my project files (this is really slow, find better implementation later) Set-PSReadlineKeyHandler -Key "Ctrl+f" -ScriptBlock { - $codepath = $(Join-Path "C:" $env:HOMEPATH "\Repos\") + $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 . $codepath $localsharepath $configpath $obsidianvaultpath -t d -d 1 | fzf)" + 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 -- cgit v1.2.3