aboutsummaryrefslogtreecommitdiff
path: root/yash/yashrc.d/ver.yash
diff options
context:
space:
mode:
Diffstat (limited to 'yash/yashrc.d/ver.yash')
-rw-r--r--yash/yashrc.d/ver.yash4
1 files changed, 4 insertions, 0 deletions
diff --git a/yash/yashrc.d/ver.yash b/yash/yashrc.d/ver.yash
new file mode 100644
index 00000000..8bd06e4d
--- /dev/null
+++ b/yash/yashrc.d/ver.yash
@@ -0,0 +1,4 @@
+# Shortcut to show current shell version
+ver() {
+ printf '%s\n' "${YASH_VERSION:-unknown}"
+}