在Microsoft store安装WSL (Ubuntu18.4 TSL)
Cmder在官网下载安装
Cmder | Console Emulator
添加一个new console,选择WSL
打开WSL,先安装zsh
sudo apt-get install zsh
修改shell(需重启后才能生效)
sudo chsh -s /bin/zsh
安装 oh my zsh
sudo wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
--2019-08-14 17:57:49-- https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh
Resolving github.com (github.com)... 13.229.188.59
Connecting to github.com (github.com)|13.229.188.59|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh [following]
--2019-08-14 17:57:50-- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.228.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.228.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7759 (7.6K) [text/plain]
Saving to: ‘STDOUT’
- 100%[===============================================================================>] 7.58K 12.5KB/s in 0.6s
2019-08-14 17:57:52 (12.5 KB/s) - written to stdout [7759/7759]
Cloning Oh My Zsh...
Cloning into '/home/jay/.oh-my-zsh'...
remote: Enumerating objects: 1048, done.
remote: Counting objects: 100% (1048/1048), done.
remote: Compressing objects: 100% (966/966), done.
remote: Total 1048 (delta 23), reused 846 (delta 19), pack-reused 0
Receiving objects: 100% (1048/1048), 696.52 KiB | 112.00 KiB/s, done.
Resolving deltas: 100% (23/23), done.
Looking for an existing zsh config...
Found ~/.zshrc. Backing up to /home/jay/.zshrc.pre-oh-my-zsh
Using the Oh My Zsh template file and adding it to ~/.zshrc.
__ __
____ / /_ ____ ___ __ __ ____ _____/ /_
/ __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \
/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / /
\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/
/____/ ....is now installed!
Please look over the ~/.zshrc file to select plugins, themes, and options.
p.s. Follow us on https://twitter.com/ohmyzsh
p.p.s. Get stickers, shirts, and coffee mugs at https://shop.planetargon.com/collections/oh-my-zsh
Run zsh to try it out.
cd 到账号的主目录下/home/xxx
在主目录下可以看到.oh-my-zsh和.zshrc
ls -la
total 68
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 .
drwxr-xr-x 1 root root 4096 Sep 5 2018 ..
-rw------- 1 jay jay 1098 Aug 14 17:55 .bash_history
-rw-r--r-- 1 jay jay 220 Sep 5 2018 .bash_logout
-rw-r--r-- 1 jay jay 3771 Sep 5 2018 .bashrc
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 .oh-my-zsh
-rw-r--r-- 1 jay jay 807 Sep 5 2018 .profile
drwx------ 1 jay jay 4096 Jan 9 2019 .ssh
-rw-r--r-- 1 jay jay 0 Sep 5 2018 .sudo_as_admin_successful
-rw------- 1 jay jay 695 Jul 21 07:13 .viminfo
-rw-r--r-- 1 root root 215 Aug 14 17:57 .wget-hsts
-rw-rw-rw- 1 jay jay 1933 Jun 13 18:25 .wsl-config
-rw-rw-rw- 1 jay jay 42275 Jul 16 14:54 .zcompdump
-rw-r--r-- 1 jay jay 3564 Aug 14 17:58 .zshrc
-rw-rw-rw- 1 jay jay 164 Jul 16 14:54 .zshrc.pre-oh-my-zsh
~/.oh-my-zsh$ ls -la
total 32
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 .
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 ..
-rw-r--r-- 1 jay jay 121 Aug 14 17:58 .editorconfig
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 .git
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 .github
-rw-r--r-- 1 jay jay 61 Aug 14 17:58 .gitignore
-rw-r--r-- 1 jay jay 3374 Aug 14 17:58 CODE_OF_CONDUCT.md
-rw-r--r-- 1 jay jay 4997 Aug 14 17:58 CONTRIBUTING.md
-rw-r--r-- 1 jay jay 1178 Aug 14 17:58 LICENSE.txt
-rw-r--r-- 1 jay jay 11513 Aug 14 17:58 README.md
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 cache
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 custom
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 lib
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 log
-rw-r--r-- 1 jay jay 3749 Aug 14 17:58 oh-my-zsh.sh
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 plugins
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 templates
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 themes
drwxr-xr-x 1 jay jay 4096 Aug 14 17:58 tools
ls themes/
3den.zsh-theme dpoggi.zsh-theme humza.zsh-theme michelebologna.zsh-theme simonoff.zsh-theme
Soliah.zsh-theme dst.zsh-theme imajes.zsh-theme mikeh.zsh-theme simple.zsh-theme
adben.zsh-theme dstufft.zsh-theme intheloop.zsh-theme miloshadzic.zsh-theme skaro.zsh-theme
af-magic.zsh-theme duellj.zsh-theme itchy.zsh-theme minimal.zsh-theme smt.zsh-theme
afowler.zsh-theme eastwood.zsh-theme jaischeema.zsh-theme mira.zsh-theme sonicradish.zsh-theme
agnoster.zsh-theme edvardm.zsh-theme jbergantine.zsh-theme mortalscumbag.zsh-theme sorin.zsh-theme
alanpeabody.zsh-theme emotty.zsh-theme jispwoso.zsh-theme mrtazz.zsh-theme sporty_256.zsh-theme
amuse.zsh-theme essembeh.zsh-theme jnrowe.zsh-theme murilasso.zsh-theme steeef.zsh-theme
apple.zsh-theme evan.zsh-theme jonathan.zsh-theme muse.zsh-theme strug.zsh-theme
arrow.zsh-theme fino-time.zsh-theme josh.zsh-theme nanotech.zsh-theme sunaku.zsh-theme
aussiegeek.zsh-theme fino.zsh-theme jreese.zsh-theme nebirhos.zsh-theme sunrise.zsh-theme
avit.zsh-theme fishy.zsh-theme jtriley.zsh-theme nicoulaj.zsh-theme superjarin.zsh-theme
awesomepanda.zsh-theme flazz.zsh-theme juanghurtado.zsh-theme norm.zsh-theme suvash.zsh-theme
bira.zsh-theme fletcherm.zsh-theme junkfood.zsh-theme obraun.zsh-theme takashiyoshida.zsh-theme
blinks.zsh-theme fox.zsh-theme kafeitu.zsh-theme peepcode.zsh-theme terminalparty.zsh-theme
bureau.zsh-theme frisk.zsh-theme kardan.zsh-theme philips.zsh-theme theunraveler.zsh-theme
candy-kingdom.zsh-theme frontcube.zsh-theme kennethreitz.zsh-theme pmcgee.zsh-theme tjkirch.zsh-theme
candy.zsh-theme funky.zsh-theme kiwi.zsh-theme pygmalion-virtualenv.zsh-theme tjkirch_mod.zsh-theme
clean.zsh-theme fwalch.zsh-theme kolo.zsh-theme pygmalion.zsh-theme tonotdo.zsh-theme
cloud.zsh-theme gallifrey.zsh-theme kphoen.zsh-theme re5et.zsh-theme trapd00r.zsh-theme
crcandy.zsh-theme gallois.zsh-theme lambda.zsh-theme refined.zsh-theme wedisagree.zsh-theme
crunch.zsh-theme garyblessington.zsh-theme linuxonly.zsh-theme rgm.zsh-theme wezm+.zsh-theme
cypher.zsh-theme gentoo.zsh-theme lukerandall.zsh-theme risto.zsh-theme wezm.zsh-theme
dallas.zsh-theme geoffgarside.zsh-theme macovsky-ruby.zsh-theme rixius.zsh-theme wuffers.zsh-theme
darkblood.zsh-theme gianu.zsh-theme macovsky.zsh-theme rkj-repos.zsh-theme xiong-chiamiov-plus.zsh-theme
daveverwer.zsh-theme gnzh.zsh-theme maran.zsh-theme rkj.zsh-theme xiong-chiamiov.zsh-theme
dieter.zsh-theme gozilla.zsh-theme mgutz.zsh-theme robbyrussell.zsh-theme ys.zsh-theme
dogenpunk.zsh-theme half-life.zsh-theme mh.zsh-theme sammy.zsh-theme zhann.zsh-theme
more .zshrc |grep ZSH_THEME=
ZSH_THEME="agnoster"