summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIbrahim Muftee <ibrahim@muftee.net>2024-06-04 15:53:11 -0500
committerIbrahim Muftee <ibrahim@muftee.net>2026-07-01 00:23:31 -0400
commitc5da3358ac4cb01a1f4c7df498983400b2d692e0 (patch)
treee8efb9634bcb41d35c2483ccce930b2e78e2cdb3
parent19258f83e9f10e20241e41407600c71b2805e157 (diff)
feat(powershell): add obsidian vaults to ctrl-f shortcut
-rw-r--r--dot_config/powershell/Microsoft.PowerShell_profile.ps13
1 files changed, 2 insertions, 1 deletions
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