-
Notifications
You must be signed in to change notification settings - Fork 26
/
oh-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.5.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.5.0
architecture:
64bit:
url:
- https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v24.5.0/posh-windows-amd64.exe#/oh-my-posh.exe
- https://raw.githubusercontent.com/Ash258/Scoop-Ash258/main/support/oh-my-posh/Ash258.yml
hash:
- 0be00284b0df60249d4f1db9bcbd9ee51394f8750b2dc80c5dfda326ca44814c
- 254ecc440bdd96f19fe770f9fc5147a28bf25788f24ac02fd73c3876722a1aac
32bit:
url:
- https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v24.5.0/posh-windows-386.exe#/oh-my-posh.exe
- https://raw.githubusercontent.com/Ash258/Scoop-Ash258/main/support/oh-my-posh/Ash258.yml
hash:
- 02eecf6aba060ce242cb1ae402fb3cda3b90373ed3e80c1bd2c2aaf36757a066
- 254ecc440bdd96f19fe770f9fc5147a28bf25788f24ac02fd73c3876722a1aac
arm64:
url:
- https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v24.5.0/posh-windows-arm64.exe#/oh-my-posh.exe
- https://raw.githubusercontent.com/Ash258/Scoop-Ash258/main/support/oh-my-posh/Ash258.yml
hash:
- 1deb81eff758ab52fad8580e0c6fadafc3081c8e56d9f7e47c30e9e6c8c6bdf7
- 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