We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45bfd83 commit b76975eCopy full SHA for b76975e
1 file changed
private/Alias-Helper.ps1
@@ -2,17 +2,14 @@
2
3
$aliases = @()
4
5
-$ALIAS_FILE_RELATIVE_PATH = 'quickpath\aliases.json'
6
-
7
function Get-AliasFilePath {
8
- if($IsWindows) {
9
- $baseDir = $env:LOCALAPPDATA
+ if ($IsWindows) {
+ $baseDir = $env:LOCALAPPDATA ?? (Join-Path $env:USERPROFILE "AppData\Local")
10
} else {
11
- # Use XDG Base Directory specification on Linux/macOS
12
$baseDir = $env:XDG_DATA_HOME ?? (Join-Path $HOME ".local/share")
13
}
14
15
- return Join-Path $baseDir $ALIAS_FILE_RELATIVE_PATH
+ return Join-Path $baseDir "quickpath" "aliases.json"
16
17
18
function Import-Aliases {
0 commit comments