Skip to content

Commit

Permalink
🎡 ci: make clink use starship instead of oh-my-posh
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquindev committed Jan 5, 2025
1 parent 0785443 commit 64fd628
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 25 deletions.
54 changes: 35 additions & 19 deletions appList.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"auto_install": true,
"packages": [
"AmN.yasb",
"BeyondCode.Herd", // php, laravel, composer, herd, and nodejs (all-in-one!)
"chrisant996.Clink",
"Flow-Launcher.Flow-Launcher",
"gerardog.gsudo",
Expand All @@ -30,13 +29,18 @@
"Microsoft.PowerShell",
"Microsoft.VisualStudio.2022.Community",
"Microsoft.VisualStudioCode",
"MongoDB.Compass.Full",
"Obsidian.Obsidian",
"Oracle.VirtualBox",
"Postman.Postman",
"Rainmeter.Rainmeter",
"rocksdanister.LivelyWallpaper",
"Stardock.Start11"
],
"additional_args": [
"--exact",
"--silent",
"--accept-package-agreements",
"--accept-source-agreements"
]
},
"choco": {
Expand All @@ -47,11 +51,15 @@
"openjdk",
"rabbitmq",
"terraform"
],
"additional_args": [
"--allow-downgrade",
"-y"
]
},
"scoop": {
"auto_install": true,
"buckets": ["extras", "sysinternals"],
"buckets": ["extras", "sysinternals", "versions"],
"packages": [
"aria2",
"bat",
Expand Down Expand Up @@ -82,41 +90,43 @@
"speedtest-cli",
"spicetify-cli",
"spotify-tui",
"starship",
"symfony-cli",
"wget",
"wixtoolset",
"yazi",
"zoxide"
]
],
"additional_args": []
}
},
"package_plugins": [
// You can add extra plugins/extensions/addons list here with the following format:
{
"name": "gh",
"command_name": "gh",
"invoke_command": "gh extension install",
"check_command": "gh extension list",
"plugins": [
{ "plugin_name": "gh-dash", "plugin_full_name": "dlvhdr/gh-dash", "version": "4.7.3" },
{ "plugin_name": "gh-license", "plugin_full_name": "Shresht7/gh-license", "version": "0.3.0" },
{ "plugin_name": "gh-download", "plugin_full_name": "yuler/gh-download", "version": "0.6.1" },
{ "plugin_name": "gh-poi", "plugin_full_name": "seachicken/gh-poi", "version": "0.12.0" },
{ "plugin_name": "gh-token", "plugin_full_name": "Link-/gh-token", "version": "2.0.2" },
{ "plugin_name": "gh-markdown-preview", "plugin_full_name": "yusukebe/gh-markdown-preview", "version": "1.8.0" }
"dlvhdr/gh-dash",
"Shresht7/gh-license",
"yuler/gh-download",
"seachicken/gh-poi",
"Link-/gh-token",
"yusukebe/gh-markdown-preview"
],
"install": true
},
{
"name": "bun", // I use bun instead of npm, pnpm, or yarn since it's faster (required `bun` installed)
"command_name": "bun", // I use bun instead of npm, pnpm, or yarn since it's faster (required `bun` installed)
"invoke_command": "bun add -g",
"check_command": "bun pm ls -g",
"plugins": [
{ "plugin_name": "", "plugin_full_name": "@angular/cli", "version": "" },
{ "plugin_name": "", "plugin_full_name": "commitizen", "version": "" },
{ "plugin_name": "", "plugin_full_name": "cz-git", "version": "" },
{ "plugin_name": "", "plugin_full_name": "degit", "version": "" },
{ "plugin_name": "", "plugin_full_name": "git-open", "version": "" },
{ "plugin_name": "", "plugin_full_name": "recent", "version": "" },
{ "plugin_name": "", "plugin_full_name": "newman", "version": "" }
"@angular/cli",
"commitizen",
"cz-git",
"degit",
"git-open",
"newman"
],
"install": true
}
Expand All @@ -135,6 +145,12 @@
"PSToml",
"Terminal-Icons",
"yarn-completion"
],
"additional_args": [
"-Scope",
"CurrentUser",
"-Force",
"-AllowClobber"
]
}
}
12 changes: 6 additions & 6 deletions clink/clink-custom/oh-my-posh.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
local ohmyposh_dir = os.getenv('LOCALAPPDATA') .. '/Programs/oh-my-posh'
-- local ohmyposh_dir = os.getenv('LOCALAPPDATA') .. '/Programs/oh-my-posh'
-- local ohmyposh_dir = os.getenv('ProgramFiles(x86)') .. '/oh-my-posh/themes'
local ohmyposh_themes = ohmyposh_dir .. '/themes'
local ohmyposh_prompt = clink.promptfilter(1)
-- local ohmyposh_themes = ohmyposh_dir .. '/themes'
-- local ohmyposh_prompt = clink.promptfilter(1)

function ohmyposh_prompt:filter(prompt)
return load(io.popen("oh-my-posh init cmd --config " .. ohmyposh_themes .. "/catppuccin_mocha.omp.json"):read("*a"))()
end
-- function ohmyposh_prompt:filter(prompt)
-- return load(io.popen("oh-my-posh init cmd --config " .. ohmyposh_themes .. "/catppuccin_mocha.omp.json"):read("*a"))()
-- end

-- local ohmyposh_theme = os.getenv('POSH_THEMES_PATH') .. 'catppuccin_mocha.omp.json'
-- local ohmyposh_prompt = clink.promptfilter(1)
Expand Down
1 change: 1 addition & 0 deletions clink/clink-custom/starship.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
load(io.popen('starship init cmd'):read("*a"))()

0 comments on commit 64fd628

Please sign in to comment.