ohmyzsh: .oh-my-zsh/oh-my-zsh.sh:40: parse error near `||'

After last git pull i got following error when open new terminal

/home/alykhouzov/.oh-my-zsh/oh-my-zsh.sh:40: parse error near `||'
alykhouzov@empire:~> 
alykhouzov@empire:~> echo $SHELL && $SHELL --version 
/usr/bin/zsh
zsh 5.1 (x86_64-suse-linux-gnu)
alykhouzov@empire:~/.oh-my-zsh> git branch 
* master

commit is

commit 76a26a2a59d8c6d0f65a4426cdb93920e255aea7
alykhouzov@empire:~/.oh-my-zsh> uname -a && cat /etc/os-release 
Linux empire 4.1.6-3-desktop #1 SMP PREEMPT Fri Aug 28 10:59:34 UTC 2015 (d867e86) x86_64 x86_64 x86_64 GNU/Linux
NAME=openSUSE
VERSION="20150909 (Tumbleweed)"
VERSION_ID="20150909"
PRETTY_NAME="openSUSE 20150909 (Tumbleweed) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:20150909"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse"

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

  1. .zshrc:3: command not found: ^M The solution is as follows:

vim ~/.zshrc then enter :set ff=unix

  1. .oh-my-zsh/oh-my-zsh.sh:42: parse error near `||' The solution is as follows:
cd $ZSH
git config core.autocrlf input
git rm --cached -r .
git reset --hard