Skip to content

Commit

Permalink
Init PS profile earlier, for install of Jump-Location
Browse files Browse the repository at this point in the history
  • Loading branch information
tathamoddie committed Jan 19, 2016
1 parent b8ca6a2 commit f050a99
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions New-Machine.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 11,11 @@ if (-not $IsAdmin) {
Write-Progress -Activity "Setting exeuction policy"
Set-ExecutionPolicy RemoteSigned

Write-Progress -Activity "Ensuring PS profile exists"
if (-not (Test-Path $PROFILE)) {
New-Item $PROFILE -Force
}

Write-Progress -Activity "Ensure chocolatey is available"
$null = Get-PackageProvider -Name chocolatey

Expand Down Expand Up @@ -55,9 60,6 @@ if ((& git config credential.helper) -ne "manager")
}

Write-Progress -Activity "Setting PS aliases"
if (-not (Test-Path $PROFILE)) {
New-Item $PROFILE -Force
}
if ((Get-Alias -Name st -ErrorAction SilentlyContinue) -eq $null) {
Add-Content $PROFILE "`r`n`r`nSet-Alias -Name st -Value (Join-Path `$env:ProgramFiles 'Sublime Text 3\sublime_text.exe')"
}
Expand Down

0 comments on commit f050a99

Please sign in to comment.