Files
windows-ansible/ansible/roles/win_domain_controller/files/logon.ps1
T
2025-01-23 15:22:28 +00:00

6 lines
304 B
PowerShell

$bashProfilePath = Join-Path $HOME ".bash_profile"
$requiredLine = 'eval "$(''/C/tools/miniforge3/Scripts/conda.exe'' ''shell.bash'' ''hook'')"'
Add-Content -Path $bashProfilePath -Value $requiredLine
Set-ItemProperty -Path $bashProfilePath -Name Attributes -Value ([System.IO.FileAttributes]::Hidden)