aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
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 /bash/bashrc.d
parentUse -e test to be consistent (diff)
downloaddotfiles-7e40448c18bba4317837264ca1eb283783205386.tar.gz
dotfiles-7e40448c18bba4317837264ca1eb283783205386.zip
Request version with "ver" shortcut not prompt
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/ver.bash4
1 files changed, 4 insertions, 0 deletions
diff --git a/bash/bashrc.d/ver.bash b/bash/bashrc.d/ver.bash
new file mode 100644
index 00000000..30a546b2
--- /dev/null
+++ b/bash/bashrc.d/ver.bash
@@ -0,0 +1,4 @@
+# Shortcut to show current shell version
+ver() {
+ printf '%s\n' "${BASH_VERSION:-unknown}"
+}