From 1930d2e3c5a597a37594af623e4d4dfe8e402969 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 30 Jun 2014 23:01:35 -0700 Subject: Minor changes and documentation cleanup. --- rbpm.sh | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'rbpm.sh') diff --git a/rbpm.sh b/rbpm.sh index e452e52..290b9f1 100755 --- a/rbpm.sh +++ b/rbpm.sh @@ -16,6 +16,8 @@ # Placing the above function inside ~/.bashrc (or equivalent) will load # it upon starting your shell. +RBPM_VERSION='0.1' + : ${RUBIES_PATH:="${HOME}/.rubies"} _echo() { @@ -141,15 +143,19 @@ rbpm_clear() { _export } +rbpm_version() { + _echo "rbpm ${RBPM_VERSION}" +} + rbpm_help() { _echo 'Usage: rbpm [args]' _echo _echo 'Commands:' - _echo ' ls List all available rubies.' - _echo ' get Display currently selected ruby.' - _echo ' set Select specified ruby.' - _echo ' clear Clear path of any rubies.' - _echo ' help Display this help information.' + _echo ' ls List all available rubies.' + _echo ' get Display currently selected ruby.' + _echo ' set Select specified ruby.' + _echo ' clear Unselect any selected rubies.' + _echo ' version Display rbpm version.' } case "${1}" in @@ -161,6 +167,10 @@ case "${1}" in rbpm_set "${2}" ;; 'clear') rbpm_clear ;; + 'version') + rbpm_version ;; *) rbpm_help ;; esac + +# vim: set sw=4 sts=4 ts=4 et : -- cgit v1.2.3-70-g09d2