]> arthur.barton.de Git - ax-zsh.git/blobdiff - bin/axzshctl
axzshctl: Enhance "version" information, show prefix & theme
[ax-zsh.git] / bin / axzshctl
index 0c996e5832cf3016ecd426f6fcea87e85fd05d5b..828ee9ba3af17e6e0cc3f66d2a88f0a6a99597b5 100755 (executable)
@@ -25,9 +25,20 @@ function Version {
        echo "Copyright (c) 2015-2019 Alexander Barton <alex@barton.de>."
        echo "Licensed under the terms of the MIT license, see LICENSE.md for details."
        echo "Homepage: <https://github.com/alexbarton/ax-zsh>"
+       echo
+       echo "Installation prefix: $AXZSH"
+       echo -n "Version: "
        if [[ -d "$AXZSH/.git" && -n "$commands[git]" ]]; then
-               echo -n "Version: Git ID "
+               echo -n "Git Commit-ID "
                ( cd "$AXZSH" && git describe --always )
+       else
+               echo "unknown"
+       fi
+       echo -n "Active theme: "
+       if [[ -n "$AXZSH_THEME" ]]; then
+               echo "${AXZSH_THEME:A:t:r}"
+       else
+               echo "unknown"
        fi
        echo
        exit 0