Omarchy-version command (#565)

* omarchy-version alias

* instead of alias, created command omarchy-version

* remove previously added alias, use omarchy-version command, instead

* set OMARCHY_PATH in the script

* updated OMARCHY_PATH
This commit is contained in:
Shigeto Kumagai 2025-08-12 00:07:17 +09:00 committed by GitHub
parent 1dc3330480
commit ccbe7c817b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

6
bin/omarchy-version Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
# set OMARCHY_PATH in case this is called by non bash environment
OMARCHY_PATH="/home/$USER/.local/share/omarchy"
git -C "$OMARCHY_PATH" describe --tags $(git -C "$OMARCHY_PATH" rev-list --tags --max-count=1)