diff options
Diffstat (limited to 'bash/bashrc.d/ver.bash')
-rw-r--r-- | bash/bashrc.d/ver.bash | 4 |
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}" +} |