pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/shells/oh-my-posh
Module Name: pkgsrc
Committed By: pin
Date: Mon Nov 24 11:43:53 UTC 2025
Modified Files:
pkgsrc/shells/oh-my-posh: Makefile distinfo go-modules.mk
Log Message:
shells/oh-my-posh: update to 28.0.0
Features
command: remove command segment (6180d88)
BREAKING CHANGES
command: The command segment has been completely removed.
Users must update configurations to use built-in segments or
alternative approaches.
The following built-in themes have been updated to remove command
segments:
pararussel.omp.json - Removed git commit time display
tokyonight_storm.omp.json - Removed git commit time display
glowsticks.omp.yaml - Removed custom git status and weather segments
If your configuration uses the command segment, you have several
alternatives:
Replace command segments with equivalent built-in segments where
possible:
Before (command segment):
{
"type": "command",
"properties": {
"command": "git log --pretty=format:%cr -1",
"shell": "bash"
}
}
After (git segment):
{
"type": "git",
"properties": {
"branch_icon": "",
"commit_icon": "",
"tag_icon": ""
},
"template": "{{ .HEAD }} ({{ .Behind }}{{ .Ahead }})"
}
Oh My Posh provides a set_poshcontext shell function that allows you
to populate environment variables before each prompt render. This is
perfect for replacing command segments:
Before (command segment):
{
"type": "command",
"properties": {
"command": "git log --pretty=format:%cr -1 || echo 'No commits'",
"shell": "bash"
}
}
After (using set_poshcontext + text segment):
Shell configuration (e.g., .bashrc, .zshrc):
function set_poshcontext() {
export POSH_GIT_LAST_COMMIT=$(git log --pretty=format:%cr -1 2>/dev/null || echo 'No commits')
}
Oh My Posh configuration:
{
"type": "text",
"template": "{{ .Env.POSH_GIT_LAST_COMMIT }}"
}
For complex shell commands, consider:
Moving logic to external scripts
Using environment variables set by shell initialization
Implementing custom segments (for advanced users)
Text segment: For static text replacement
Environment variables: For dynamic values set outside Oh My Posh
Built-in segments: Many common use cases are covered by existing segments
The command segment was removed for the following reasons:
1) Security: Arbitrary command execution in prompt rendering poses security risks
2) Performance: Shell command execution can significantly slow down prompt rendering
To generate a diff of this commit:
cvs rdiff -u -r1.291 -r1.292 pkgsrc/shells/oh-my-posh/Makefile
cvs rdiff -u -r1.268 -r1.269 pkgsrc/shells/oh-my-posh/distinfo
cvs rdiff -u -r1.111 -r1.112 pkgsrc/shells/oh-my-posh/go-modules.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/shells/oh-my-posh/Makefile
diff -u pkgsrc/shells/oh-my-posh/Makefile:1.291 pkgsrc/shells/oh-my-posh/Makefile:1.292
--- pkgsrc/shells/oh-my-posh/Makefile:1.291 Fri Nov 14 08:29:49 2025
+++ pkgsrc/shells/oh-my-posh/Makefile Mon Nov 24 11:43:53 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.291 2025/11/14 08:29:49 pin Exp $
+# $NetBSD: Makefile,v 1.292 2025/11/24 11:43:53 pin Exp $
-DISTNAME= oh-my-posh-27.6.0
+DISTNAME= oh-my-posh-28.0.0
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_GITHUB:=JanDeDobbeleer/}
GITHUB_TAG= v${PKGVERSION_NOREV}
Index: pkgsrc/shells/oh-my-posh/distinfo
diff -u pkgsrc/shells/oh-my-posh/distinfo:1.268 pkgsrc/shells/oh-my-posh/distinfo:1.269
--- pkgsrc/shells/oh-my-posh/distinfo:1.268 Fri Nov 14 08:29:49 2025
+++ pkgsrc/shells/oh-my-posh/distinfo Mon Nov 24 11:43:53 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.268 2025/11/14 08:29:49 pin Exp $
+$NetBSD: distinfo,v 1.269 2025/11/24 11:43:53 pin Exp $
BLAKE2s (dario.cat_mergo_@v_v1.0.2.mod) = 7b465f298a2de57c12f0f78180f97e8de899412ad8639d2d72653c98d550d78f
SHA512 (dario.cat_mergo_@v_v1.0.2.mod) = 7ce66ba65c020143c4a7d000bbe82ad40dcef6602b462cbe81a4cb79bb948decae6e3dee7dfc7f580f09573efe37e1380d8e14a0e8c37b1dc2d32d0b8c1adbb6
@@ -222,12 +222,12 @@ Size (github.com_gookit_color_@v_v1.6.0.
BLAKE2s (github.com_gookit_color_@v_v1.6.0.zip) = 5d200a6218d09bc19bbb3a3f95bbed180b93c5cf39fef2fa8d8b9cfe08becf88
SHA512 (github.com_gookit_color_@v_v1.6.0.zip) = bb789126c91c95914cce278f5d36e24d1c37a1b298ab024b08dd704eeef7819154d2f1060f7c48165ce715f41275ad79ac9f74edf679996e23a0ecc8f08325fc
Size (github.com_gookit_color_@v_v1.6.0.zip) = 78068 bytes
-BLAKE2s (github.com_gookit_goutil_@v_v0.7.1.mod) = 226419ea05049b28d99fdad71c637f94c2bc73fcbbe92c477e0d2ab0bbc36507
-SHA512 (github.com_gookit_goutil_@v_v0.7.1.mod) = 88ffaaf76eeb11c53d89fd6a1e79be9f32b233153b110281a9915b70cfb56587a5f02b0492efbe7b79fd59a8860d642f81bf13d7b07142182b0d328e4ba30b65
-Size (github.com_gookit_goutil_@v_v0.7.1.mod) = 161 bytes
-BLAKE2s (github.com_gookit_goutil_@v_v0.7.1.zip) = 3a62b7c4d616f2807df7d4115e3f9dd1f4164d2f1db66b8773f20465efe4ddc1
-SHA512 (github.com_gookit_goutil_@v_v0.7.1.zip) = 83c63fffd243d49c842b8a3e6207dc88e8b2e0cd324b972128af262e7f9bba0a8b68e2124cfa3b8fa5a2546d634c81cb15c368fcb35ce0631962cac6bad8d180
-Size (github.com_gookit_goutil_@v_v0.7.1.zip) = 811081 bytes
+BLAKE2s (github.com_gookit_goutil_@v_v0.7.2.mod) = 226419ea05049b28d99fdad71c637f94c2bc73fcbbe92c477e0d2ab0bbc36507
+SHA512 (github.com_gookit_goutil_@v_v0.7.2.mod) = 88ffaaf76eeb11c53d89fd6a1e79be9f32b233153b110281a9915b70cfb56587a5f02b0492efbe7b79fd59a8860d642f81bf13d7b07142182b0d328e4ba30b65
+Size (github.com_gookit_goutil_@v_v0.7.2.mod) = 161 bytes
+BLAKE2s (github.com_gookit_goutil_@v_v0.7.2.zip) = 965f10fb5fcd26dace827cf697d43ff147e477da9104eb931e921ebf63513937
+SHA512 (github.com_gookit_goutil_@v_v0.7.2.zip) = a0fcfe484e52aaef6a243b482a12db37539d8b334cb7b0911b6926a2bae123abef7d571ecb6e06939ae69c49974ccf60cac4aea1ae18903e413649186cbcb61d
+Size (github.com_gookit_goutil_@v_v0.7.2.zip) = 831589 bytes
BLAKE2s (github.com_hashicorp_hcl_v2_@v_v2.24.0.mod) = b7e5731dc1b713687d8962da60c857621785cc5ff6ff48e8d88893689e1e4d50
SHA512 (github.com_hashicorp_hcl_v2_@v_v2.24.0.mod) = 3d84ef0c0ac8d78994425943bb6c45e99c12debffb4a2712678f02f3fbc964cf60931e2000c11e78541b48cc5350cfc6eff42344f7ddba8e4e6ac20ca0981d85
Size (github.com_hashicorp_hcl_v2_@v_v2.24.0.mod) = 714 bytes
@@ -483,12 +483,12 @@ Size (github.com_zclconf_go-cty_@v_v1.17
BLAKE2s (github.com_zclconf_go-cty_@v_v1.17.0.zip) = 76b735a1f9835b6d5c5d1890d7fa5ce860b45bc1b8311427691b8095a331bb1a
SHA512 (github.com_zclconf_go-cty_@v_v1.17.0.zip) = 7a34995ab7af6ade03286aca41d9127c03eca75484657cb30bd848de4ad28ecb7927b82d868b86c5d6c760083c4598736cef9452d51bf0a90083609afd7ac1da
Size (github.com_zclconf_go-cty_@v_v1.17.0.zip) = 342531 bytes
-BLAKE2s (golang.org_x_crypto_@v_v0.42.0.mod) = f2bfdd34b0c06167d645621bec52e41518d9ba7f6996a07cac8d6249795e0f0e
-SHA512 (golang.org_x_crypto_@v_v0.42.0.mod) = 365a12193e3f9486fa4637346f9726008bf857f84de76122409cae8b7151e90cc9822b9af0f764d60fb379540f7d52812bbfd7a42cd0cb9d883f92c4d513abf5
-Size (golang.org_x_crypto_@v_v0.42.0.mod) = 192 bytes
-BLAKE2s (golang.org_x_crypto_@v_v0.42.0.zip) = bdf48fac72fd034e4e227fa8cd053fb4d3ead8509baeffd6e14c957850151b86
-SHA512 (golang.org_x_crypto_@v_v0.42.0.zip) = 327f495008f6efd9f948c995685c135c6918f702d253d12d4b6cfaa16c841e06474df12edf35c527768646412b9d7e13bf192920c719bb27cd5b62c82ee8cb75
-Size (golang.org_x_crypto_@v_v0.42.0.zip) = 2230527 bytes
+BLAKE2s (golang.org_x_crypto_@v_v0.45.0.mod) = e73fffd9c847ca3e57d8a6e26e81e4bb189e9ee02324de1f6c785148b22569b8
+SHA512 (golang.org_x_crypto_@v_v0.45.0.mod) = 29d25b41c2802761da784afe6fbee78b494119bfb389887c2f300b9106ca4b2db0b9b42fb2491d1514c7785a416d0d37f5d71b6e25e40a6c50223f777a703f6a
+Size (golang.org_x_crypto_@v_v0.45.0.mod) = 192 bytes
+BLAKE2s (golang.org_x_crypto_@v_v0.45.0.zip) = 08e8f09f0f2570be885e710c2eb873c2deda7c8f83efdac3d8a771e85934425b
+SHA512 (golang.org_x_crypto_@v_v0.45.0.zip) = cc98fde38f94ae23493efb80da0b699e06845750c066dc158601477a25a20040e8282ee033d612e131158e7409a4093f97a8e5f7297caf4fef56d983bca5f7a9
+Size (golang.org_x_crypto_@v_v0.45.0.zip) = 2223680 bytes
BLAKE2s (golang.org_x_exp_@v_v0.0.0-20241217172543-b2144cdd0a67.mod) = 9c5aed554983b2c570995a59dfa5adea9a8bd93032d5c466d8418cdcd4f61671
SHA512 (golang.org_x_exp_@v_v0.0.0-20241217172543-b2144cdd0a67.mod) = ef7e5790a1329e9102fa910a11b37900fa45f0e3edb881c4143d04d9bb38d598a86b9d799d81f45de6261047f2689cff4fa8e5d5a6e859caeea9fb2299eea1fa
Size (golang.org_x_exp_@v_v0.0.0-20241217172543-b2144cdd0a67.mod) = 182 bytes
@@ -579,9 +579,9 @@ Size (gopkg.in_yaml.v3_@v_v3.0.1.mod) =
BLAKE2s (gopkg.in_yaml.v3_@v_v3.0.1.zip) = 2e80fa896e65b1ae160400012c71aeac70e22a31cac82ec4921c85a93d65774c
SHA512 (gopkg.in_yaml.v3_@v_v3.0.1.zip) = d57b0d42c71ad6503415e42979b51b0dc7f6344072c728ab2e3d4bab88da7b7d775e7f261868909f990f6b44aed6c533966c97bbe333a0acd65fc8bac9d1d4ff
Size (gopkg.in_yaml.v3_@v_v3.0.1.zip) = 104623 bytes
-BLAKE2s (oh-my-posh-27.6.0.tar.gz) = 63c9d4b54415d8e4693e5cfaf5077019574bba03033ecdd06968c1720d26804b
-SHA512 (oh-my-posh-27.6.0.tar.gz) = 4b5825b22156abc06df7960febb6db5aef298f33934a44b478ff5150bfdf4a82a6ad635fe00905c4cc0bfc0905b2b7492dec3e229187e53c744e585b79181ccb
-Size (oh-my-posh-27.6.0.tar.gz) = 6803472 bytes
+BLAKE2s (oh-my-posh-28.0.0.tar.gz) = 85db2537b49607be4f51cf2a1e05effcfad97c07ed01097c446187cf980176d7
+SHA512 (oh-my-posh-28.0.0.tar.gz) = 75af5ef761c2620ee6a523555b6f30204a7c7177ec9e175fdd524b39d00365b3b82875c056078e3deca0fc8a98de59cb77e13f6a50b07e51c5ac0517ee544bc0
+Size (oh-my-posh-28.0.0.tar.gz) = 6798635 bytes
SHA1 (patch-go.mod) = f02ebe53cae01005f81d0e9abfe06cf756bac9b2
SHA1 (patch-runtime_battery_battery__solaris.go) = 9e8f8fa10006cadfc7fb9d2b95e7a85bc271315a
SHA1 (patch-runtime_battery_battery__windows__nix.go) = 8e8863cf8c925a1e409b135e5abf113640f0e708
Index: pkgsrc/shells/oh-my-posh/go-modules.mk
diff -u pkgsrc/shells/oh-my-posh/go-modules.mk:1.111 pkgsrc/shells/oh-my-posh/go-modules.mk:1.112
--- pkgsrc/shells/oh-my-posh/go-modules.mk:1.111 Fri Nov 14 08:29:49 2025
+++ pkgsrc/shells/oh-my-posh/go-modules.mk Mon Nov 24 11:43:53 2025
@@ -1,4 +1,4 @@
-# $NetBSD: go-modules.mk,v 1.111 2025/11/14 08:29:49 pin Exp $
+# $NetBSD: go-modules.mk,v 1.112 2025/11/24 11:43:53 pin Exp $
GO_MODULE_FILES+= dario.cat/mergo/@v/v1.0.2.mod
GO_MODULE_FILES+= dario.cat/mergo/@v/v1.0.2.zip
@@ -74,8 +74,8 @@ GO_MODULE_FILES+= github.com/google/uuid
GO_MODULE_FILES+= github.com/google/uuid/@v/v1.6.0.zip
GO_MODULE_FILES+= github.com/gookit/color/@v/v1.6.0.mod
GO_MODULE_FILES+= github.com/gookit/color/@v/v1.6.0.zip
-GO_MODULE_FILES+= github.com/gookit/goutil/@v/v0.7.1.mod
-GO_MODULE_FILES+= github.com/gookit/goutil/@v/v0.7.1.zip
+GO_MODULE_FILES+= github.com/gookit/goutil/@v/v0.7.2.mod
+GO_MODULE_FILES+= github.com/gookit/goutil/@v/v0.7.2.zip
GO_MODULE_FILES+= github.com/hashicorp/hcl/v2/@v/v2.24.0.mod
GO_MODULE_FILES+= github.com/hashicorp/hcl/v2/@v/v2.24.0.zip
GO_MODULE_FILES+= github.com/huandu/xstrings/@v/v1.5.0.mod
@@ -161,8 +161,8 @@ GO_MODULE_FILES+= github.com/yusufpapurc
GO_MODULE_FILES+= github.com/yusufpapurcu/wmi/@v/v1.2.4.zip
GO_MODULE_FILES+= github.com/zclconf/go-cty/@v/v1.17.0.mod
GO_MODULE_FILES+= github.com/zclconf/go-cty/@v/v1.17.0.zip
-GO_MODULE_FILES+= golang.org/x/crypto/@v/v0.42.0.mod
-GO_MODULE_FILES+= golang.org/x/crypto/@v/v0.42.0.zip
+GO_MODULE_FILES+= golang.org/x/crypto/@v/v0.45.0.mod
+GO_MODULE_FILES+= golang.org/x/crypto/@v/v0.45.0.zip
GO_MODULE_FILES+= golang.org/x/exp/@v/v0.0.0-20241217172543-b2144cdd0a67.mod
GO_MODULE_FILES+= golang.org/x/exp/@v/v0.0.0-20241217172543-b2144cdd0a67.zip
GO_MODULE_FILES+= golang.org/x/image/@v/v0.33.0.mod
Home |
Main Index |
Thread Index |
Old Index