环境:
Ubuntu 32位
oh-my-zsh安装:
1.安装zsh: sudo apt-get install zsh
2.将当前用户的shell环境修改为zsh: chsh -s /bin/zsh
若用chsh命令修改无效,则进入/etc/passwd中修改当前用户的shell环境。
3.安装oh-my-zsh【参考:https://github.com/robbyrussell/oh-my-zsh】
3.1安装git: sudo apt-get install git
3.2安装curl: sudo apt-get install curl
3.2安装oh-my-zsh
自动安装:
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
默认安装路径为:~/.oh-my-zsh
手动安装:
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
4.重启:sudo reboot
然后就可以看到oh-my-zsh生效。
时间: 2024-10-10 15:41:57