public
nobgit
read
Codex
NobGit for Codex
Languages
Repository composition by tracked source files.
PowerShell
57%
Shell
43%
Trace
install.ps1
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
Author
Date
Commit
Line
Code
1
$ErrorActionPreference = "Stop"
3
$repoRoot = Split-Path -Parent $MyInvocation.MyCommand.Path
4
$pluginPath = Join-Path $env:USERPROFILE "plugins\nobgit"
5
$marketplacePath = Join-Path $env:USERPROFILE ".agents\plugins\marketplace.json"
6
$marketplaceDir = Split-Path $marketplacePath
8
New-Item -ItemType Directory -Force $pluginPath | Out-Null
9
New-Item -ItemType Directory -Force $marketplaceDir | Out-Null
11
Copy-Item -Recurse -Force (Join-Path $repoRoot ".codex-plugin") $pluginPath
12
Copy-Item -Recurse -Force (Join-Path $repoRoot "assets") $pluginPath
13
Copy-Item -Recurse -Force (Join-Path $repoRoot "skills") $pluginPath
14
Copy-Item -Force (Join-Path $repoRoot ".mcp.json") (Join-Path $pluginPath ".mcp.json")
15
Copy-Item -Force (Join-Path $repoRoot "readme.md") (Join-Path $pluginPath "readme.md")
17
if (Test-Path $marketplacePath) {
18
$marketplace = Get-Content -Raw $marketplacePath | ConvertFrom-Json
19
} else {
20
$marketplace = [ordered]@{
21
name = "personal"
22
interface = [ordered]@{ displayName = "Personal" }
23
plugins = @()
24
}
25
}
27
if (-not ($marketplace.PSObject.Properties.Name -contains "plugins")) {
28
$marketplace | Add-Member -MemberType NoteProperty -Name plugins -Value @()
29
}
31
$entry = [ordered]@{
32
name = "nobgit"
33
source = [ordered]@{
34
source = "local"
35
path = "./plugins/nobgit"
36
}
37
policy = [ordered]@{
38
installation = "AVAILABLE"
39
authentication = "ON_INSTALL"
40
}
41
category = "Developer Tools"
42
}
44
$plugins = @($marketplace.plugins | Where-Object { $_.name -ne "nobgit" })
45
$marketplace.plugins = @($plugins + $entry)
46
$marketplace | ConvertTo-Json -Depth 10 | Set-Content -Encoding UTF8 $marketplacePath
48
if (Get-Command codex -ErrorAction SilentlyContinue) {
49
try {
50
codex plugin add nobgit@personal
51
} catch {
52
Write-Warning "NobGit was added to the personal marketplace, but 'codex plugin add nobgit@personal' failed. Open Codex Plugins and install NobGit from Personal."
53
}
54
} else {
55
Write-Host "NobGit was added to the personal marketplace. Open Codex Plugins and install NobGit from Personal."
56
}
58
Write-Host "Done. Start a new Codex thread after installing NobGit."