mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-27 14:07:21 +00:00
20 lines
637 B
Django/Jinja
20 lines
637 B
Django/Jinja
$bashProfilePath = Join-Path $HOME ".bash_profile"
|
|
|
|
if ( -not ( Test-Path -Path $bashProfilePath ) ) {
|
|
$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)
|
|
}
|
|
|
|
|
|
$Renviron_path = Join-Path $HOME "Documents\.Renviron"
|
|
|
|
if ( -not ( Test-Path -Path $Renviron_path ) ) {
|
|
$Renviron_contents = @"
|
|
http_proxy=http://{{ proxy_address }}
|
|
https_proxy=http://{{ proxy_address }}
|
|
"@
|
|
|
|
Add-Content $Renviron_path $Renviron_contents
|
|
} |