Skip to content

Instantly share code, notes, and snippets.

@kayo-tozaki
Created April 25, 2016 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kayo-tozaki/f52c01825075cbb5c2829f8c7c2e79fa to your computer and use it in GitHub Desktop.
Save kayo-tozaki/f52c01825075cbb5c2829f8c7c2e79fa to your computer and use it in GitHub Desktop.
$ 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