diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-19 13:18:16 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-19 13:18:16 +1300 |
commit | 7e40448c18bba4317837264ca1eb283783205386 (patch) | |
tree | 7c20204f4927f1659cfae3d588b2043fd9338936 /bash/bashrc.d | |
parent | Use -e test to be consistent (diff) | |
download | dotfiles-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.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}" +} |