summaryrefslogtreecommitdiff
path: root/dot_config
diff options
context:
space:
mode:
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\")