-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathoh-my-posh.yml
66 lines (66 loc) · 3.24 KB
/
oh-my-posh.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: 24.19.0
description: A prompt theme engine for any shell
homepage: https://ohmyposh.dev
license:
identifier: GPL-3.0-only
url: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/COPYING
changelog: https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v24.19.0
architecture:
64bit:
url:
- https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v24.19.0/posh-windows-amd64.exe#/oh-my-posh.exe
- https://raw.githubusercontent.com/Ash258/Scoop-Ash258/main/support/oh-my-posh/Ash258.yml
hash:
- 7e36a65301412afd0754a9aaaba4635d27427b29e6874cff8d6b4b5c7714d5fd
- 254ecc440bdd96f19fe770f9fc5147a28bf25788f24ac02fd73c3876722a1aac
32bit:
url:
- https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v24.19.0/posh-windows-386.exe#/oh-my-posh.exe
- https://raw.githubusercontent.com/Ash258/Scoop-Ash258/main/support/oh-my-posh/Ash258.yml
hash:
- e0a5a0408cdae539b5607febb55b7f6059604daf397c501a7901327566b725d1
- 254ecc440bdd96f19fe770f9fc5147a28bf25788f24ac02fd73c3876722a1aac
arm64:
url:
- https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v24.19.0/posh-windows-arm64.exe#/oh-my-posh.exe
- https://raw.githubusercontent.com/Ash258/Scoop-Ash258/main/support/oh-my-posh/Ash258.yml
hash:
- 476ddb04a099cf34d6a1d5a65d150852bce274612de9971c50071a23fdfd6638
- 254ecc440bdd96f19fe770f9fc5147a28bf25788f24ac02fd73c3876722a1aac
post_install: |
$th = "$dir\themes"
Move-Item "$dir\Ash258.yml" "$th\Ash258.omp.yml" -Force
ConvertFrom-Manifest "$th\Ash258.omp.yml" | ConvertTo-Manifest "$th\Ash258.omp.json"
if ($env:POSH_INSTALL) { # TODO: Migrate to install options
$c = @(
'#region Oh-my-posh'
'$bitness = if ([System.IntPtr]::Size -eq 8) { ''64bit'' } else { ''32bit'' }'
'if ($env:PROCESSOR_ARCHITECTURE -like ''ARM*'') { $bitness = ''arm'' + ($bitness -replace ''bit'') }'
'$ps = if ($PSVersionTable.PSVersion.Major -ge 6) { ''pwsh'' } else { ''ps'' }'
'$ps += ''@'' + $PSVersionTable.PSVersion.ToString()'
'$env:__SHELL_INFORMATION_POSH_258__ = "$ps@$bitness"'
"Invoke-Expression (@(oh-my-posh.exe prompt init pwsh --print --config '$th\Ash258.omp.yml') -join ""``n"")"
'Enable-PoshTransientPrompt'
'#endregion Oh-my-posh'
)
$prof = if ($global) { $PROFILE.AllUsersAllHosts } else { $PROFILE }
Write-UserMessage "Installing Ash258 theme to $prof" -Warning
if (!(Test-Path -LiteralPath $prof -PathType 'Leaf')) { New-Item $prof -ErrorAction 'SilentlyContinue' -Force | Out-Null }
Add-Content $prof $c -Force
}
bin: oh-my-posh.exe
persist: themes
checkver:
github: https://github.com/JanDeDobbeleer/oh-my-posh
autoupdate:
changelog: https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v$version
architecture:
64bit:
url: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$version/posh-windows-amd64.exe#/oh-my-posh.exe
32bit:
url: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$version/posh-windows-386.exe#/oh-my-posh.exe
arm64:
url: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$version/posh-windows-arm64.exe#/oh-my-posh.exe
hash:
url: $url.sha256
regex: $sha256