Add aliae to all OSes
This commit is contained in:
parent
3b0a4e6956
commit
638d241973
5 changed files with 83 additions and 0 deletions
scripts/Windows/Config/aliae
21
scripts/Windows/Config/aliae/Install.ps1
Normal file
21
scripts/Windows/Config/aliae/Install.ps1
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/pwsh
|
||||
param($context);
|
||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||
|
||||
[Context] $context = $context;
|
||||
$script = New-TemporaryFile;
|
||||
$script = Rename-Item $script "$($script.Name).sh" -PassThru;
|
||||
|
||||
Write-Information "Preparing setup script";
|
||||
|
||||
Set-Content $script (
|
||||
[string]::Join(
|
||||
"`n",
|
||||
@(
|
||||
"SKIP_POWERSHELL=1 bash `"$PSScriptRoot/../../../Common/Config/aliae/install.sh`"",
|
||||
"rm ~/.bashrc")));
|
||||
|
||||
$context.AddPowerShellProfileStatement("# aliae`naliae init pwsh | Invoke-Expression");
|
||||
Write-Information "Running prepared script";
|
||||
Start-Process -Wait $script;
|
||||
Remove-Item $script;
|
Loading…
Add table
Add a link
Reference in a new issue