ohmyzsh
requer que o shell zsh
seja instalado.
A questão é explicada em detalhes aqui.
Uma solução alternativa é instalar zsh
primeiro, mudar para o shell zsh e depois obter e executar ohmyzsh
da mesma maneira que você fez antes.
Exemplo usando wget
:
sudo apt install zsh
apt-get install git-core
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
ohmyzsh
informará que foi instalado com êxito com essa saída ou semelhante:
--2018-05-08 18:44:07-- https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh [following]
--2018-05-08 18:44:07-- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.44.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.44.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3941 (3.8K) [text/plain]
Saving to: ‘STDOUT’
- 100%[==========================================================>] 3.85K --.-KB/s in 0s
2018-05-08 18:44:07 (57.9 MB/s) - written to stdout [3941/3941]
Cloning Oh My Zsh...
Cloning into '/home/me/.oh-my-zsh'...
remote: Counting objects: 858, done.
remote: Compressing objects: 100% (721/721), done.
remote: Total 858 (delta 16), reused 780 (delta 10), pack-reused 0
Receiving objects: 100% (858/858), 572.49 KiB | 0 bytes/s, done.
Resolving deltas: 100% (16/16), done.
Checking connectivity... done.
Looking for an existing zsh config...
Using the Oh My Zsh template file and adding it to ~/.zshrc
I can't change your shell automatically because this system does not have chsh.
Please manually change your default shell to zsh!
__ __
____ / /_ ____ ___ __ __ ____ _____/ /_
/ __ \/ __ \ / __ '__ \/ / / / /_ / / ___/ __ \
/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / /
\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/
/____/ ....is now installed!
Please look over the ~/.zshrc file to select plugins, themes, and options.
Se você deseja mudar shells, você pode fazer isso emitindo os comandos
chsh -s 'which zsh'
sudo reboot
A reinicialização pode não ser necessária, você provavelmente poderia fazer logout e, em seguida, fazer login novamente.
Para voltar ao shell padrão, apenas emita o comando
chsh -s /bin/bash
Fontes:
man chsh