aboutsummaryrefslogtreecommitdiff
path: root/rbpm.sh
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-06-30 23:01:35 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-06-30 23:01:35 -0700
commit1930d2e3c5a597a37594af623e4d4dfe8e402969 (patch)
treea07465cf7b0ef5c52f19cdf4321293ebc09637ec /rbpm.sh
parentb869f4894b409af42ff2ab8515d85f81ae4cc7eb (diff)
downloadrbpm-1930d2e3c5a597a37594af623e4d4dfe8e402969.tar.gz
rbpm-1930d2e3c5a597a37594af623e4d4dfe8e402969.tar.xz
Minor changes and documentation cleanup.
Diffstat (limited to 'rbpm.sh')
-rwxr-xr-xrbpm.sh20
1 files changed, 15 insertions, 5 deletions
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 <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 :