Mat*_*tle 9 command-line zsh software-installation 18.04
我已经升级到 Ubuntu 18.04 并且一直在尝试安装 zsh。我已经经历了所有的方法去了,我能够使用它,但是当我尝试安装哦,我的岩组,它开始运行,然后有一个错误:
Zsh not installed! Install zsh first.
Run Code Online (Sandbox Code Playgroud)
我已经使用 cat 和所有东西来确认它确实已安装(显然,因为我正在使用它?)我做错了什么?
Eld*_*eek 13
ohmyzsh需要zsh安装shell。
解决方法是先安装zsh,更改为 zsh shell,然后ohmyzsh以与之前相同的方式获取并运行。
使用示例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
Run Code Online (Sandbox Code Playgroud)
ohmyzsh 将报告它已使用此或类似输出成功安装:
--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.
Run Code Online (Sandbox Code Playgroud)
如果您想更改外壳,则可以通过发出命令来实现
chsh -s `which zsh`
sudo reboot
Run Code Online (Sandbox Code Playgroud)
可能不需要重新启动,您可能会注销然后重新登录。
要恢复到默认 shell,只需发出命令
chsh -s /bin/bash
Run Code Online (Sandbox Code Playgroud)
资料来源:
https://gist.github.com/tsabat/1498393
https://github.com/robbyrussell/oh-my-zsh/issues/227#issuecomment-825773
man chsh
| 归档时间: |
|
| 查看次数: |
17625 次 |
| 最近记录: |