diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-06-30 23:01:35 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-06-30 23:01:35 -0700 |
commit | 1930d2e3c5a597a37594af623e4d4dfe8e402969 (patch) | |
tree | a07465cf7b0ef5c52f19cdf4321293ebc09637ec /rbpm.sh | |
parent | b869f4894b409af42ff2ab8515d85f81ae4cc7eb (diff) | |
download | rbpm-1930d2e3c5a597a37594af623e4d4dfe8e402969.tar.gz rbpm-1930d2e3c5a597a37594af623e4d4dfe8e402969.tar.xz |
Minor changes and documentation cleanup.
Diffstat (limited to 'rbpm.sh')
-rwxr-xr-x | rbpm.sh | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -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 <command> [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 : |