zoukankan      html  css  js  c++  java
  • Env:zsh和fish安装和使用

    • zsh优势兼容bash, 方便git管理,但是有时候切换速度较慢,特别遇到git仓库目录
    • fish优势速度较快,路径提示也不错,但是和bash不兼容

    1. zsh


    • 首先,可以通过cat /etc/shells显示当前安装了哪些shell,也可以通过echo $SHELL查看当前正在使用的shell

    • 安装zsh:Ubuntu:sudo apt-get install zsh
    • 从bash切换到zsh,且开启Terminal默认为zsh, chsh -s /bin/zsh
    • 安装oh my zsh: 
    1 wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
    • 完成,重启Terminal

    更详尽的可参考:https://zhuanlan.zhihu.com/p/19556676

    2. fish

    • 安装fish: Ubuntu: sudo apt-get install fish
    • 从bash切换到fish, 只需要直接输入fish即可;若需要设置为Terminal默认的shell,则可以chsh -s /usr/bin/fish
    • 修改fish配置: vi /etc/fish/config.fish
    • 安装oh my fish可以参考https://ruby-china.org/topics/11384
  • 相关阅读:
    C# 数据库连接字符串拼接
    C# 线程同步计数存在的问题
    字符串操作
    字符串位置
    6个基本函数
    占位符
    str转换成int
    python运算符6
    python运算符5
    python运算符4
  • 原文地址:https://www.cnblogs.com/aaronLinux/p/5468845.html
Copyright © 2011-2022 走看看