不器小窝 不器小窝
首页
随笔
  • GoLang
  • 前端

    • Vue
    • VuePress
  • 开发工具
  • 系统工具
读吧
  • ToDb (opens new window)
  • goKit (opens new window)
  • 友情链接
  • 免费信息
  • 时间线
  • 关于
GitHub (opens new window)

不器

知行合一
首页
随笔
  • GoLang
  • 前端

    • Vue
    • VuePress
  • 开发工具
  • 系统工具
读吧
  • ToDb (opens new window)
  • goKit (opens new window)
  • 友情链接
  • 免费信息
  • 时间线
  • 关于
GitHub (opens new window)
  • 开发工具

  • 系统工具

    • brew
    • 端口
    • macOS经验
    • Linux
    • Ubuntu安装了,然后呢
    • Linux原来还可以这么用
    • hyper终端美化
    • Mac安装软件错误信息集合
    • 命令的艺术
    • 浏览器

    • ZSH

      • Ubuntu终端安装zsh
        • zsh简介
        • 安装zsh shell
        • 查看当前使用的zsh shell
        • 切换shell
        • 安装oh-my-zsh
        • 安装插件
          • 安装zsh-syntax-highlighting语法高亮插件
          • 安装主题配套字体powerline/fonts
    • PowerEdge R620

  • 软件使用和评测

  • 工具
  • 系统工具
  • ZSH
不器
2022-07-06
目录

Ubuntu终端安装zsh

# zsh简介

Zsh是一款功能强大的Shell软件,既可以作为交互式终端来使用,也可以作为脚本语言解释器来使用。

# 安装zsh shell

sudo apt install zsh
1

# 查看当前使用的zsh shell

echo $SHELL
1

# 切换shell

chsh -s /bin/zsh
1

# 安装oh-my-zsh

sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
1

# 安装插件

# 安装zsh-syntax-highlighting语法高亮插件

  1. 下载zsh-syntax-highlighting语法高亮插件

    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-syntax-highlighting
    
    1
  2. 下载zsh-autosuggestions自动提示插件

    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh}/plugins/zsh-autosuggestions
    
    1
  3. 配置.zshrc文件

    # 找到plugins=(git)的位置,添加zsh-syntax-highlighting和zsh-autosuggestions
    plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
    
    1
    2
  4. 保存后执行source ~/.zshrc保证配置文件更新

# 安装主题配套字体powerline/fonts

sudo apt install fonts-powerline
1
#工具#系统工具#Linux#Ubuntu#Ubuntu美化#zsh
更新时间: 2023/2/10 09:50:10
浏览器错误信息
Dell PowerEdge R620 安装操作系统

← 浏览器错误信息 Dell PowerEdge R620 安装操作系统→

最近更新
01
Vue-pure-Admin基础
03-16
02
WebStorm工具使用手册
03-15
03
Windows
03-12
更多文章>
Theme by Vdoing | Copyright © 2022-2023 不器 | 小窝
sitemap icon by Icons8
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式