From a909a0520b555be12db6db17739cc12e9de6fbd7 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Wed, 19 Jun 2024 14:41:50 -0500 Subject: fix(powershell): remove hard dependency on user name --- dot_config/powershell/Microsoft.PowerShell_profile.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (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 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\") -- cgit v1.2.3