Create a gist now

Instantly share code, notes, and snippets.

@kayo-tozaki /rbenv_init Secret
Created Apr 25, 2016

What would you like to do?
$ rbenv init -
export PATH="/home/ユーザ名/.rbenv/shims:${PATH}"
export RBENV_SHELL=bash
source '/usr/local/rbenv/libexec/../completions/rbenv.bash'
command rbenv rehash 2>/dev/null
rbenv() {
local command
command="$1"
if [ "$#" -gt 0 ]; then
shift
fi
case "$command" in
rehash|shell)
eval "$(rbenv "sh-$command" "$@")";;
*)
command rbenv "$command" "$@";;
esac
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment