エラー内容
先日、macのshellをbashからzshへと変更しました。
その後、terminalを開くたびに
/Users/ユーザー名/.zshrc:36: parse error near `\n'
とエラーが出ます。
該当するファイルを添付しておきます。
1 # 2 # Executes commands at the start of an interactive session. 3 # 4 # Authors: 5 # Sorin Ionescu <sorin.ionescu@gmail.com> 6 # 7 8 # Source Prezto. 9 if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then 10 source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" 11 fi 12 fpath=(path/to/zsh-completions/src $fpath) 13 14 # Customize to your needs... 15 export PYENV_ROOT="$HOME/.pyenv" 16 export PATH="$PYENV_ROOT/bin:$PATH" 17 eval "$(pyenv init -)" 18 export PATH="$PYENV_ROOT/versions/anaconda3-5.1.0/bin/:$PATH" 19 export PATH="/Users/ユーザー名/.pyenv/versions/anaconda3-5.3.1/bin:$PATH"$ 20 #peco 21 peco-history-selection() { 22 =$(history 1 | sort -k1,1nr | perl -ne 'BEGIN { my @lines = (); } s/^\s*\d+*?\s*//; $in=$_; if (!(grep {$in eq $_} @lines)) { push(@lines, $in); print $in; }' | peco --query "$LBUFFER") 23 =${#BUFFER} 24 export XDG_CONFIG_HOME="$HOME/.config" 25 26 reset-prompt 27 28 -N peco-history-selection 29 '^R' peco-history-selection 30 # The following lines were added by compinstall 31 zstyle :compinstall filename '/Users/ユーザー名/.zshrc' 32 33 autoload -Uz compinit 34 compinit 35 # End of lines added by compinstal
エラーが出ても、ターミナルは使えるのですが気持ち悪くて気になってしいます。
よろしくお願いします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/03/01 14:01