Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstall impossible #4483

Closed
roukmoute opened this issue Oct 10, 2015 · 7 comments
Closed

Uninstall impossible #4483

roukmoute opened this issue Oct 10, 2015 · 7 comments

Comments

@roukmoute
Copy link

There was an error when we want uninstall:

➜  ~  uninstall_oh_my_zsh
Are you sure you want to remove Oh My Zsh? [y/N] y
/home/roukmoute/.oh-my-zsh/tools/uninstall.sh: 2: /home/roukmoute/.oh-my-zsh/tools/uninstall.sh: [[: not found
Uninstall cancelled
@apjanke
Copy link
Contributor

apjanke commented Oct 10, 2015

Looks like this is caused by #4464, which introduces a prompt for the uninstall, but uses non-portable syntax for it. The test needs to be done with single-bracket [ ... ].

@superlbr
Copy link

can i uninstall manually?

@roukmoute
Copy link
Author

@superlbr: Yes, just read uninstall.sh

rm -rf ~/.oh-my-zsh
chsh -s /bin/bash

It's actually almost the only thing to do.

@superlbr
Copy link

thanks

@mkoller
Copy link

mkoller commented Oct 16, 2015

@roukmoute This worked, but every time I open up Iterm2 I have to type

~$ zsh

In order to start OhMyZsh, any ideas on to have zsh start on default?

@apjanke
Copy link
Contributor

apjanke commented Oct 16, 2015

Use chsh -s to change your default shell. (Unless you're on cygwin, in which case you have to manually generate and edit /etc/passwd.)

@roukmoute
Copy link
Author

Thanks @apjanke.
But this question @mkoller has nothing to do here.
You're answer written here.

fhenrysson pushed a commit to fhenrysson/oh-my-zsh that referenced this issue Nov 10, 2015
We need to use POSIX syntax. This file is no longer executed with zsh.

Fixes ohmyzsh#4483.
kirb pushed a commit to kirb/oh-my-zsh that referenced this issue Dec 19, 2015
We need to use POSIX syntax. This file is no longer executed with zsh.

Fixes ohmyzsh#4483.
nunogt pushed a commit to nunogt/oh-my-zsh that referenced this issue Jan 25, 2016
We need to use POSIX syntax. This file is no longer executed with zsh.

Fixes ohmyzsh#4483.
NobbZ pushed a commit to NobbZ/oh-my-zsh that referenced this issue May 15, 2016
We need to use POSIX syntax. This file is no longer executed with zsh.

Fixes ohmyzsh#4483.
DennisDenuto pushed a commit to DennisDenuto/oh-my-zsh that referenced this issue Oct 29, 2016
We need to use POSIX syntax. This file is no longer executed with zsh.

Fixes ohmyzsh#4483.
fforw pushed a commit to fforw/oh-my-zsh that referenced this issue Feb 21, 2017
We need to use POSIX syntax. This file is no longer executed with zsh.

Fixes ohmyzsh#4483.
spiliopoulos pushed a commit to spiliopoulos/zsh-config that referenced this issue Jun 17, 2020
We need to use POSIX syntax. This file is no longer executed with zsh.

Fixes ohmyzsh#4483.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants