Public/Get-DotsConfigPath.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# Borrowed from Brandon Olin - Thanks! function Get-DotsConfigPath { <# .SYNOPSIS Get Dots configuration file path .DESCRIPTION Get Dots configuration file path .EXAMPLE Get-DotsConfigPath .FUNCTIONALITY Dots #> [CmdletBinding()] param() end { if (Test-IsWindows) { Join-Path -Path $env:TEMP -ChildPath "$env:USERNAME-$env:COMPUTERNAME-dots.xml" } else { Join-Path -Path $env:HOME -ChildPath '.dotsconfig' # Leading . and no file extension to be Unixy. } } } |