70829


macbook のrubyの環境構築設定の際に  
以下のような文章がついてしまいました。  
初期値に戻すにはどうしたらいいですか？

[code]

    Last login: Wed Sep 30 13:13:01 on ttys004
    /Users/devmac1/.zshrc:1: no such file or directory: evalexport PATH="/Users/devmac1/.rbenv/shims:${PATH}"\nexport RBENV_SHELL=zsh\nsource '/usr/local/Cellar/rbenv/1.1.2/libexec/../completions/rbenv.zsh'\ncommand rbenv rehash 2>/dev/null\nrbenv() {\n  local command\n  command="${1:-}"\n  if [ "$#" -gt 0 ]; then\n    shift\n  fi\n\n  case "$command" in\n  rehash|shell)\n    eval "$(rbenv "sh-$command" "$@")";;\n  *)\n    command rbenv "$command" "$@";;\n  esac\n}
    /Users/devmac1/.zshrc:2: no such file or directory: evalexport PATH="/Users/devmac1/.rbenv/shims:${PATH}"\nexport RBENV_SHELL=zsh\nsource '/usr/local/Cellar/rbenv/1.1.2/libexec/../completions/rbenv.zsh'\ncommand rbenv rehash 2>/dev/null\nrbenv() {\n  local command\n  command="${1:-}"\n  if [ "$#" -gt 0 ]; then\n    shift\n  fi\n\n  case "$command" in\n  rehash|shell)\n    eval "$(rbenv "sh-$command" "$@")";;\n  *)\n    command rbenv "$command" "$@";;\n  esac\n}
    devmac1@DevMac1noMacBook-Air ~ % 
    
[/code]


CC BY-SA 4.0
2020-09-30T04:30:31.920
70828
2020-09-30T04:53:11.203
2020-09-30T04:53:11.203
41425
42115
question
ruby macos shell zsh
macbook air のターミナルの立ち上げの文字


`.zshrc` の1行目が `eval"$(rbenv init -)"` のようになっていてスペースが抜けているように見えるので、 `eval` と
`"` の間にスペースを入れて `eval "$(rbenv init -)"` のようになるように修正すれば良さそうです。


CC BY-SA 4.0
2020-09-30T04:50:52.280
70829
2020-09-30T04:50:52.280
14277
70828
answer