Skip to content

Commit d042511

Browse files
committed
jabba
1 parent 7d829f0 commit d042511

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

Microsoft.PowerShell_profile.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ if (Get-Module -ListAvailable -Name 'posh-git') {
2020
. (Join-Path $profileDir posh-git.profile.ps1)
2121
}
2222

23+
if (Test-Path "${Env:USERPROFILE}\.jabba\jabba.ps1") {
24+
. "${Env:USERPROFILE}\.jabba\jabba.ps1"
25+
}
26+
. (Join-Path $profileDir jabba-upgrade.ps1)
27+
2328
# Alias
2429
Remove-Item Alias:cat
2530
Remove-Item -Force Alias:diff

jabba-upgrade.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
function jabba-upgrade
3+
{
4+
Invoke-Expression (
5+
# Workaround URL until PS 6.0
6+
Invoke-WebRequest https://github.com/kxbmap/jabba/raw/ps-utf8/install.ps1 -UseBasicParsing
7+
).Content
8+
}

setup.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ try {
1515
'Pscx.UserPreferences.ps1' = $profileDir;
1616
'PSReadlineProfile.ps1' = $profileDir;
1717
'posh-git.profile.ps1' = $profileDir;
18+
'jabba-upgrade.ps1' = $profileDir;
1819
'.sbtrc' = $home;
1920
'.gitconfig' = $home;
2021
} | % { $_.GetEnumerator() } | % {

0 commit comments

Comments
 (0)