zoukankan      html  css  js  c++  java
  • 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 
    
    
  • 相关阅读:
    php详解和优化
    接口
    抽象类
    对象转型
    面向对象2
    Super关键字
    Object类介绍
    有效处理java异常的三个原则
    this关键字
    equals方法
  • 原文地址:https://www.cnblogs.com/twotigers/p/10564319.html
Copyright © 2011-2022 走看看