diff options
Diffstat (limited to 'dot_config/powershell')
| -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 |
