diff options
| author | Ibrahim Muftee <ibrahim@muftee.net> | 2025-06-24 11:25:23 -0500 |
|---|---|---|
| committer | Ibrahim Muftee <ibrahim@muftee.net> | 2026-07-01 00:23:31 -0400 |
| commit | 5b9095cfdcf7cba439205ee63ace7f0e166fa258 (patch) | |
| tree | 261e3c3b3a03a06d0cd33a90c55dc9f7ac62bdd6 /dot_config | |
| parent | de24f5cc884db661a58ed3464987e1c52692cf59 (diff) | |
feat(powershell): add more directories to fzf
Diffstat (limited to 'dot_config')
| -rw-r--r-- | dot_config/powershell/Microsoft.PowerShell_profile.ps1 | 7 |
1 files 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 |
