From c5da3358ac4cb01a1f4c7df498983400b2d692e0 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Tue, 4 Jun 2024 15:53:11 -0500 Subject: feat(powershell): add obsidian vaults to ctrl-f shortcut --- dot_config/powershell/Microsoft.PowerShell_profile.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dot_config/powershell/Microsoft.PowerShell_profile.ps1') diff --git a/dot_config/powershell/Microsoft.PowerShell_profile.ps1 b/dot_config/powershell/Microsoft.PowerShell_profile.ps1 index 6090e89..11e43d2 100644 --- a/dot_config/powershell/Microsoft.PowerShell_profile.ps1 +++ b/dot_config/powershell/Microsoft.PowerShell_profile.ps1 @@ -15,7 +15,8 @@ Set-PSReadlineKeyHandler -Key "Ctrl+f" -ScriptBlock { $codepath = $(Join-Path "C:" $env:HOMEPATH "\Documents\Repos\") $configpath = $(Join-Path "C:" $env:HOMEPATH "\.config\") $localsharepath = $(Join-Path "C:" $env:HOMEPATH "\.local\share\") - Invoke-Expression "cd $(fd . $codepath $localsharepath $configpath -t d -d 1 | fzf)" + $obsidianvaultpath = $(Join-Path "C:" $env:HOMEPATH "\Documents\Vaults\") + Invoke-Expression "cd $(fd . $codepath $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