2019-05-24 Cygwin install zsh

  1. install zsh
$ apt-cyg install zsh
$ ln -s /usr/bin/zsh-5.5.1.exe  /usr/bin/zsh
  1. install o my zsh
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Cloning Oh My Zsh...
Cloning into '/home/dengbeiquan/.oh-my-zsh'...
remote: Enumerating objects: 1038, done.
remote: Counting objects: 100% (1038/1038), done.
remote: Compressing objects: 100% (954/954), done.
remote: Total 1038 (delta 23), reused 844 (delta 20), pack-reused 0
Receiving objects: 100% (1038/1038), 687.84 KiB | 279.00 KiB/s, done.
Resolving deltas: 100% (23/23), done.
Looking for an existing zsh config...
Using the Oh My Zsh template file and adding it to ~/.zshrc
I can't change your shell automatically because this system does not have chsh.
Please manually change your default shell to zsh!
         __                                     __
  ____  / /_     ____ ___  __  __   ____  _____/ /_
 / __ \/ __ \   / __ `__ \/ / / /  /_  / / ___/ __ \
/ /_/ / / / /  / / / / / / /_/ /    / /_(__  ) / / /
\____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_/
                        /____/                       ....is now installed!


Please look over the ~/.zshrc file to select plugins, themes, and options.

p.s. Follow us at https://twitter.com/ohmyzsh

p.p.s. Get stickers, shirts, and coffee mugs at https://shop.planetargon.com/collections/oh-my-zsh

➜  ~

  1. windows 右键新建快捷方式
C:\cygwin64\bin\mintty.exe /usr/bin/zsh -l
  1. 解决卡顿问题
    现象是每次cd和ll时都会被卡住很长时间根本受不了,
    最后在官方github查明原因是使用的主题会自动获取git信息,
    可以使用以下命令禁止zsh自动获取git信息,解决卡顿问题
$ git config --global oh-my-zsh.hide-status 1

你可能感兴趣的:(2019-05-24 Cygwin install zsh)