linux 终极shell zsh 及增强工具 oh-my-zsh 一并安装
1 安装zsh
ubuntu 用户: apt install zsh,
centos 用户: yum install zsh
2 安装zsh 增强工具 oh-my-zsh 执行:
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
3 更主题
vim ~/.zshrc 为ys
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/root/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
#ZSH_THEME="robbyrussell"
ZSH_THEME="ys"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true
4 zsh 主题推荐 ys , bureau , angoster ,强烈推荐使用 ys,因为 用户名,主机名,目录信息,时间,都是几个关键信息,相对于其他主题来说,显示信息显示在上一行,输入命令时换行在下一行,这样有效的防止了目录信息过长,影响到命令的输入的尴尬。
ys
bureau 和 agnoster