From 33d6d3833250fe842073cfbee14d764d2c416f6d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 28 Aug 2025 09:05:26 +0200 Subject: [PATCH] Include Omarchy branch in About (#1231) --- bin/omarchy-version-branch | 3 +++ config/fastfetch/config.jsonc | 6 ++++++ migrations/1756363651.sh | 3 +++ 3 files changed, 12 insertions(+) create mode 100755 bin/omarchy-version-branch create mode 100644 migrations/1756363651.sh diff --git a/bin/omarchy-version-branch b/bin/omarchy-version-branch new file mode 100755 index 00000000..43281d9a --- /dev/null +++ b/bin/omarchy-version-branch @@ -0,0 +1,3 @@ +#!/bin/bash + +echo $(git -C "$OMARCHY_PATH" rev-parse --abbrev-ref HEAD) diff --git a/config/fastfetch/config.jsonc b/config/fastfetch/config.jsonc index 316f4415..b2cad35f 100644 --- a/config/fastfetch/config.jsonc +++ b/config/fastfetch/config.jsonc @@ -68,6 +68,12 @@ "keyColor": "blue", "text": "version=$(omarchy-version); echo \"Omarchy $version\"" }, + { + "type": "command", + "key": "│ ├󰘬", + "keyColor": "blue", + "text": "branch=$(omarchy-version-branch); echo \"$branch\"" + }, { "type": "kernel", "key": "│ ├", diff --git a/migrations/1756363651.sh b/migrations/1756363651.sh new file mode 100644 index 00000000..3df0985c --- /dev/null +++ b/migrations/1756363651.sh @@ -0,0 +1,3 @@ +echo "Update About config to include the Omarchy branch name" + +omarchy-refresh-fastfetch