Ubuntu Shell 实践指南

2026-04-11 15:310阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

一、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

阅读全文
标签:软件开发