Skip to content
kcp edited this page May 16, 2019 · 3 revisions

title: Zsh date: 2018-12-15 12:06:10 tags: - Shell categories: - Linux

目录 start

  1. Zsh
    1. 为什么要使用
    2. 安装
    3. 配置
    4. oh-my-zsh
      1. 插件
      2. 主题
        1. 自己定制

目录 end|2019-05-14 14:42|


Zsh

arch zsh wiki

为什么要使用

mac 装了 oh my zsh 后比用 bash 具体好在哪儿?
终极 Shell——ZSH

安装

debian系 apt install zsh

配置

某人的配置

oh-my-zsh

Github | 参考博客进行安装

关于PS1环境变量的折腾 因为含特殊字符GitBook构建通不过,只能放出去了

  1. 安装好 zsh wget git
  2. sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  3. vi ~/.zshrc 进行配置
    plugins=(
        git mvn docker
    )

插件

wiki: plugins
zsh oh-my-zsh 插件推荐

  • 个人常用 git autojump go docker kubectl

主题

官网主题列表

  • 自带主题:
    • 个人偏好 amuse clean wedisagree, muse也还好,就是没时间

额外安装

额外主题列表

  • powerlevel9k

    • 官方文档
    • git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
    • powerlevel9k/powerlevel9k
  • Bullet Train 桌面在用

  • Maglev Tmux 主题 和上面的Zsh主题搭配使用

  • spaceship

安装步骤

  1. mkdir $ZSH_CUSTOM/themes/
  2. wget http://raw.github.com/caiogondim/bullet-train-oh-my-zsh-theme/master/bullet-train.zsh-theme
  3. config .zshrc to ZSH_THEME="bullet-train"

自己定制

Github doc

基于muse的主题 用在服务器上挺好

~/.oh-my-zsh/custom/themes/muse-myth.zsh-theme 源码

Summary

Clone this wiki locally