mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
sync from windows
This commit is contained in:
parent
2147f4b960
commit
bc3834188d
12 changed files with 219 additions and 31 deletions
|
|
@ -35,8 +35,8 @@ if ($currentPath -notlike "*%PATH_EXT%*") {
|
|||
# Simulate XDG Base Directory Specification
|
||||
$Env:XDG_CONFIG_HOME = "$Env:AppData"
|
||||
$Env:XDG_DATA_HOME = "$Env:LocalAppData"
|
||||
$Env:XDG_CACHE_HOME = "$Env:LocalAppData\cache"
|
||||
$Env:XDG_STATE_HOME = "$Env:LocalAppData\state"
|
||||
$Env:XDG_CACHE_HOME = "$Env:LocalAppData\Cache"
|
||||
$Env:XDG_STATE_HOME = "$Env:LocalAppData\State"
|
||||
[System.Environment]::SetEnvironmentVariable("XDG_CONFIG_HOME", "$Env:XDG_CONFIG_HOME", "User")
|
||||
[System.Environment]::SetEnvironmentVariable("XDG_DATA_HOME", "$Env:XDG_DATA_HOME", "User")
|
||||
New-Item -ItemType Directory -Path "$Env:LocalAppData\cache" -Force
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@ Set-MpPreference -ControlledFolderAccessProtectedFolders $protected
|
|||
$apps = (Get-MpPreference).ControlledFolderAccessAllowedApplications
|
||||
$apps += "$Env:Windir\System32\OpenSSH\ssh.exe"
|
||||
$apps += "$Env:ProgramFiles\GPSoftware\Directory Opus\DOpus.exe"
|
||||
$apps += "$Env:UserProfile\scoop\apps\pwsh\current\pwsh.exe"
|
||||
$apps += (Get-Command -Name code).Source.Replace("bin\code.cmd", "Code.exe")
|
||||
$apps += (Get-Command -Name pwsh).Source
|
||||
$apps += (Get-Command -Name git).Source
|
||||
Set-MpPreference -ControlledFolderAccessAllowedApplications $apps
|
||||
|
||||
$exclusion = (Get-MpPreference).ExclusionPath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue