zsh 配置
· 3 mins read
zsh安装使用
-
安装
apt install zsh // 查看 cat /etc/shells // 切换 sudo chsh -s /usr/bin/zsh chsh -s /usr/bin/zsh
-
安装oh-my-zsh
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
-
安装Pure
// pure https://github.com/sindresorhus/pure // 使用Nodesource安装高版本nodejs https://github.com/nodesource/distributions npm install --global pure-prompt mkdir -p "$HOME/.zsh" git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure" // 创建并写入.zshrc vim $HOME/.zshrc // .zsrc fpath+=$HOME/.zsh/pure autoload -U promptinit; promptinit prompt pure