aboutsummaryrefslogtreecommitdiff
path: root/ksh/kshrc.d/ver.ksh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-19 13:18:16 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-19 13:18:16 +1300
commit7e40448c18bba4317837264ca1eb283783205386 (patch)
tree7c20204f4927f1659cfae3d588b2043fd9338936 /ksh/kshrc.d/ver.ksh
parentUse -e test to be consistent (diff)
downloaddotfiles-7e40448c18bba4317837264ca1eb283783205386.tar.gz
dotfiles-7e40448c18bba4317837264ca1eb283783205386.zip
Request version with "ver" shortcut not prompt
Diffstat (limited to 'ksh/kshrc.d/ver.ksh')
-rw-r--r--ksh/kshrc.d/ver.ksh4
1 files changed, 4 insertions, 0 deletions
diff --git a/ksh/kshrc.d/ver.ksh b/ksh/kshrc.d/ver.ksh
new file mode 100644
index 00000000..68602a8d
--- /dev/null
+++ b/ksh/kshrc.d/ver.ksh
@@ -0,0 +1,4 @@
+# Shortcut to show current shell version
+function ver {
+ printf '%s\n' "${KSH_VERSION:-unknown}"
+}