Ubuntu Shell 实践指南
- 内容介绍
- 文章标签
- 相关推荐
一、Shell 环境配置
安装 Zsh + Oh My Zsh
# 安装 Zsh
sudo apt install zsh
# 安装 Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
必装插件
# zsh-autosuggestions:历史命令实时提示
git clone https://github.com/zsh-users/zsh-autosuggestions \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# zsh-syntax-highlighting:命令实时语法高亮
git clone https://github.com/zsh-users/zsh-syntax-highlighting \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
在 ~/.zshrc 启用:
plugins=(git zsh-autosuggestions zsh-syntax-highlighting z fzf)
安装 fzf(模糊搜索)
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
在 ~/.zshrc 加入(需在 plugins 之前):
expo
一、Shell 环境配置
安装 Zsh + Oh My Zsh
# 安装 Zsh
sudo apt install zsh
# 安装 Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
必装插件
# zsh-autosuggestions:历史命令实时提示
git clone https://github.com/zsh-users/zsh-autosuggestions \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# zsh-syntax-highlighting:命令实时语法高亮
git clone https://github.com/zsh-users/zsh-syntax-highlighting \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
在 ~/.zshrc 启用:
plugins=(git zsh-autosuggestions zsh-syntax-highlighting z fzf)
安装 fzf(模糊搜索)
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
在 ~/.zshrc 加入(需在 plugins 之前):
expo

