summaryrefslogtreecommitdiff
path: root/dot_config
diff options
context:
space:
mode:
authorIbrahim Muftee <ibrahim@muftee.net>2024-06-19 14:41:50 -0500
committerIbrahim Muftee <ibrahim@muftee.net>2026-07-01 00:23:31 -0400
commita909a0520b555be12db6db17739cc12e9de6fbd7 (patch)
tree8602b1481fe5106134c651778f2d99c9b8f4da5e /dot_config
parentc0e9d3980137b533f8eddb1e6409fbdc3fbc3606 (diff)
fix(powershell): remove hard dependency on user name
Diffstat (limited to 'dot_config')
-rw-r--r--dot_config/powershell/Microsoft.PowerShell_profile.ps110
1 files changed, 5 insertions, 5 deletions
diff --git a/dot_config/powershell/Microsoft.PowerShell_profile.ps1 b/dot_config/powershell/Microsoft.PowerShell_profile.ps1
index 11e43d2..86e788e 100644
--- a/dot_config/powershell/Microsoft.PowerShell_profile.ps1
+++ b/dot_config/powershell/Microsoft.PowerShell_profile.ps1
@@ -1,7 +1,7 @@
# Environment variables
-$env:XDG_CONFIG_HOME="C:/Users/muftei/.config"
-$env:XDG_DATA_HOME="C:/Users/muftei/.local/share"
-$env:XDG_STATE_HOME="C:/Users/muftei/.local/state"
+$env:XDG_CONFIG_HOME=$(Join-Path "C:" $env:HOMEPATH "\.config")
+$env:XDG_DATA_HOME=$(Join-Path "C:" $env:HOMEPATH "\.local\share")
+$env:XDG_STATE_HOME=$(Join-Path "C:" $env:HOMEPATH "\.local\state")
$env:EDITOR="nvim"
# Use some cool icons
@@ -10,9 +10,9 @@ Import-Module -Name Terminal-Icons
# Git autocompletion for Powershell
Import-Module -Name posh-git
-# Fuzzy find my project files
+# 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 "\Documents\Repos\")
+ $codepath = $(Join-Path "C:" $env:HOMEPATH "\Repos\")
$configpath = $(Join-Path "C:" $env:HOMEPATH "\.config\")
$localsharepath = $(Join-Path "C:" $env:HOMEPATH "\.local\share\")
$obsidianvaultpath = $(Join-Path "C:" $env:HOMEPATH "\Documents\Vaults\")