rbenvをbash profileに登録できない
https://it.typeac.jp/article/show/5を参考にrubyの環境をOSX 10.9.4で構築していました。
rbenvとruby-buildをインストールし、rbenvをbash_profileに登録しようとしたのですが
1 echo 'eval "$(rbenv init -)"' >> .bash_profile
2 source ~/.bash_profile
3 rbenv rehash
の
1行目をターミナルに入力して、2行目source ~/.bash_profileを入力すると
-bash: evalexport PATH="/Users/〜/.rbenv/shims:${PATH}"
source "/usr/local/Cellar/rbenv/0.4.0/libexec/../completions/rbenv.bash"
rbenv rehash 2>/dev/null
rbenv() {
typeset command
command="$1"
if [ "$#" -gt 0 ]; then
shift
fi
case "$command" in
rehash|shell)
eval `rbenv "sh-$command" "$@"`;;
*)
command rbenv "$command" "$@";;
esac
}: No such file or directory
と返ってきてしまい、ここでつまってしまいました。
以降再起動をかけてもターミナルの先頭には
Last login: Thu Dec 4 06:24:24 on ttys000
-bash: evalexport PATH="/Users/〜/.rbenv/shims:${PATH}"
source "/usr/local/Cellar/rbenv/0.4.0/libexec/../completions/rbenv.bash"
rbenv rehash 2>/dev/null
rbenv() {
typeset command
command="$1"
if [ "$#" -gt 0 ]; then
shift
fi
case "$command" in
rehash|shell)
eval `rbenv "sh-$command" "$@"`;;
*)
command rbenv "$command" "$@";;
esac
}: No such file or directory
と表示されるようになってしまいました。
解決方法をご教授ねがえませんでしょうか?
MacBook Air (13-inch Mid 2011), OS X Mavericks (10.9.4)