今日の日記メモ
Railsの環境作成に挑む
cmd+shift+. ホームディレクトリでのファイルを出す
試した
x21024xx@x21024xxnoAir ~ % echo $SHELL
/bin/zsh
x21024xx@x21024xxnoAir ~ % echo ‘eval “$(rbenv init -)”’ >> ~/.zshrc
x21024xx@x21024xxnoAir ~ % source ~/.zshrc
/Users/x21024xx/.zshrc:1: parse error near `then'
x21024xx@x21024xxnoAir ~ %
なぜか echo ‘eval “$(rbenv init -)”’ >> ~/.zshrc が上手くいかない
↓ .zshenv の中身
‘eval “export PATH="/Users/x21024xx/.rbenv/shims:${PATH}" export RBENV_SHELL=zsh source '/opt/homebrew/Cellar/rbenv/1.2.0/libexec/../completions/rbenv.zsh' 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 }”’
chatgptに聞いた方法もだめ
掲示板かなんかで聞いてみようかな