sstephenson/rbenv — pull request #594 by yyuu (2014-06-02 12:06:42+00:00)
Title: Add hooks for `rbenv-init`

This can allow plugins to implement their shell functions into user's shell.

For example, install following scripts as `${RBENV_ROOT}/rbenv.d/init/detect.bash` will detect the changes of the Ruby version in rbenv.

```bash
cat < \$(rbenv version-name)"
fi
OLD_RBENV_VERSION="\$(rbenv version-name)"
};
if ! [[ "\$PROMPT_COMMAND" =~ _rbenv_hook ]]; then
PROMPT_COMMAND="_rbenv_hook;\$PROMPT_COMMAND";
fi
EOF
```