###前提・実現したいこと
ターミナルを起動ときに必ずbashrc関連のエラーが発生します。
ターミナルでgitのブランチ名を表示しようと試み、失敗したときからこのエラーが表示されていると思います。
以下を実践しました。
http://blog.ruedap.com/2011/07/06/mac-terminal-git-branch-name
###発生している問題・エラーメッセージ
-sh: /etc/bashrc: line 11: syntax error near unexpected token `{bashrc' -sh: /etc/bashrc: line 11: ` update_terminal_cwd() {bashrc'
###該当のソースコード
/etc/bashrc内の記述は以下です。
# System-wide .bashrc file for interactive bash(1) shells. if [ -z "$PS1" ]; then return fi PS1='\h:\W \u\$ ' # Make bash check its window size after a process completes shopt -s checkwinsize # Tell the terminal about the working directory at each prompt. if [ "$TERM_PROGRAM" == "Apple_Terminal" ] && [ -z "$INSIDE_EMACS" ]; then update_terminal_cwd() {bashrc # Identify the directory using a "file:" scheme URL, # including the host name to disambiguate local vs. # remote connections. Percent-escape spaces. local SEARCH=' ' local REPLACE='%20' local PWD_URL="file://$HOSTNAME${PWD//$SEARCH/$REPLACE}" printf '\e]7;%s\a' "$PWD_URL" } PROMPT_COMMAND="update_terminal_cwd; $PROMPT_COMMAND" fi ~ ~ "bashrc" [readonly][noeol] 21L, 737C
###試したこと
/etc/skel
~/.bashrc
上記を確認しようとしたのですが、そもそも存在しませんでした。
###補足情報(言語/FW/ツール等のバージョンなど)
macOSです
なにとぞよろしくおねがいいたします。

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。