Ubuntu 终端配置

  • 安装zsh apt install zsh

  • 设置zsh为默认shell chsh -s /bin/zsh
    • 恢复 bash 使用 chsh -s /bin/bash
  • 安装 Oh My Zsh
    • sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  • 配置语法高亮
  • 配置自动补全
➜  ~ cd ~/.oh-my-zsh/lib

➜  lib git:(master) git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
正克隆到 'zsh-syntax-highlighting'...
remote: Enumerating objects: 61, done.
remote: Counting objects: 100% (61/61), done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 5341 (delta 28), reused 43 (delta 21), pack-reused 5280
接收对象中: 100% (5341/5341), 1.10 MiB | 151.00 KiB/s, 完成.
处理 delta 中: 100% (3526/3526), 完成.
➜  lib git:(master) ✗ git clone https://github.com/zsh-users/zsh-autosuggestions.git    
正克隆到 'zsh-autosuggestions'...
remote: Enumerating objects: 65, done.
remote: Counting objects: 100% (65/65), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 1943 (delta 37), reused 65 (delta 37), pack-reused 1878
接收对象中: 100% (1943/1943), 450.20 KiB | 168.00 KiB/s, 完成.
处理 delta 中: 100% (1221/1221), 完成.

➜  lib git:(master) ✗ echo 'source ~/.oh-my-zsh/lib/zsh-autosuggestions/zsh-autosuggestions.zsh                                               
source ~/.oh-my-zsh/lib/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh'>> ~/.zshrc 

转载于:https://www.cnblogs.com/ywhyme/p/10564319.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值