折腾:
之后,打算先去此处的Mac中安装oh-my-zsh去试试。
去主页:
https://github.com/robbyrussell/oh-my-zsh
此处Mac已预装了zsh,且版本满足>= 4.3.9:
licrifandeMacBook-Pro:SalesAppiOS crifan$ zsh –version zsh 5.0.8 (x86_64-apple-darwin15.0) |
然后去安装:
licrifandeMacBook-Pro:SalesAppiOS crifan$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" Cloning Oh My Zsh… Cloning into ‘/Users/crifan/.oh-my-zsh’… remote: Counting objects: 780, done. remote: Compressing objects: 100% (643/643), done. remote: Total 780 (delta 22), reused 689 (delta 12), pack-reused 0 Receiving objects: 100% (780/780), 521.50 KiB | 40.00 KiB/s, done. Resolving deltas: 100% (22/22), done. Checking connectivity… done. Looking for an existing zsh config… Using the Oh My Zsh template file and adding it to ~/.zshrc Time to change your default shell to zsh! Changing shell for crifan. Password for crifan: __ __ ____ / /_ ____ ___ __ __ ____ _____/ /_ / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ / /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / \____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ /____/ ….is now installed! Please look over the ~/.zshrc file to select plugins, themes, and options. ➜ SalesAppiOS git:(master) ✗ |
如图:
然后再去简单的使用试试:
然后参考各种资料:
oh-my-zsh/plugins at master · robbyrussell/oh-my-zsh
有一堆的plugin
Plugins · robbyrussell/oh-my-zsh Wiki
Themes · robbyrussell/oh-my-zsh Wiki
看了看,好像有个:
Honukai
不错,去设置看看
另外:
External themes · robbyrussell/oh-my-zsh Wiki
中的:
AgnosterZak
Bullet train
都不错,有机会也去试试。
#ZSH_THEME="robbyrussell" ZSH_THEME="Bullet train" |
结果去生效时出错了:
➜ ~ source .zshrc /Users/crifan/.oh-my-zsh/oh-my-zsh.sh:source:110: no such file or directory: /Users/crifan/.oh-my-zsh/themes/Bullet train.zsh-theme |
然后本地的确没有这个:
[email protected]:~% ls ~/.oh-my-zsh/themes 3den.zsh-theme fwalch.zsh-theme nanotech.zsh-theme Soliah.zsh-theme gallifrey.zsh-theme nebirhos.zsh-theme adben.zsh-theme gallois.zsh-theme nicoulaj.zsh-theme af-magic.zsh-theme garyblessington.zsh-theme norm.zsh-theme afowler.zsh-theme gentoo.zsh-theme obraun.zsh-theme agnoster.zsh-theme geoffgarside.zsh-theme peepcode.zsh-theme alanpeabody.zsh-theme gianu.zsh-theme philips.zsh-theme amuse.zsh-theme gnzh.zsh-theme pmcgee.zsh-theme apple.zsh-theme gozilla.zsh-theme pure.zsh-theme arrow.zsh-theme half-life.zsh-theme pygmalion.zsh-theme aussiegeek.zsh-theme humza.zsh-theme re5et.zsh-theme avit.zsh-theme imajes.zsh-theme rgm.zsh-theme awesomepanda.zsh-theme intheloop.zsh-theme risto.zsh-theme bira.zsh-theme itchy.zsh-theme rixius.zsh-theme blinks.zsh-theme jaischeema.zsh-theme rkj-repos.zsh-theme bureau.zsh-theme jbergantine.zsh-theme rkj.zsh-theme candy-kingdom.zsh-theme jispwoso.zsh-theme robbyrussell.zsh-theme candy.zsh-theme jnrowe.zsh-theme sammy.zsh-theme clean.zsh-theme jonathan.zsh-theme simonoff.zsh-theme cloud.zsh-theme josh.zsh-theme simple.zsh-theme crcandy.zsh-theme jreese.zsh-theme skaro.zsh-theme crunch.zsh-theme jtriley.zsh-theme smt.zsh-theme cypher.zsh-theme juanghurtado.zsh-theme sonicradish.zsh-theme dallas.zsh-theme junkfood.zsh-theme sorin.zsh-theme darkblood.zsh-theme kafeitu.zsh-theme sporty_256.zsh-theme daveverwer.zsh-theme kardan.zsh-theme steeef.zsh-theme dieter.zsh-theme kennethreitz.zsh-theme strug.zsh-theme dogenpunk.zsh-theme kiwi.zsh-theme sunaku.zsh-theme dpoggi.zsh-theme kolo.zsh-theme sunrise.zsh-theme dst.zsh-theme kphoen.zsh-theme superjarin.zsh-theme dstufft.zsh-theme lambda.zsh-theme suvash.zsh-theme duellj.zsh-theme linuxonly.zsh-theme takashiyoshida.zsh-theme eastwood.zsh-theme lukerandall.zsh-theme terminalparty.zsh-theme edvardm.zsh-theme macovsky-ruby.zsh-theme theunraveler.zsh-theme emotty.zsh-theme macovsky.zsh-theme tjkirch.zsh-theme essembeh.zsh-theme maran.zsh-theme tjkirch_mod.zsh-theme evan.zsh-theme mgutz.zsh-theme tonotdo.zsh-theme example.zsh-theme mh.zsh-theme trapd00r.zsh-theme fino-time.zsh-theme michelebologna.zsh-theme wedisagree.zsh-theme fino.zsh-theme mikeh.zsh-theme wezm+.zsh-theme fishy.zsh-theme miloshadzic.zsh-theme wezm.zsh-theme flazz.zsh-theme minimal.zsh-theme wuffers.zsh-theme fletcherm.zsh-theme mira.zsh-theme xiong-chiamiov-plus.zsh-theme fox.zsh-theme mortalscumbag.zsh-theme xiong-chiamiov.zsh-theme frisk.zsh-theme mrtazz.zsh-theme ys.zsh-theme frontcube.zsh-theme murilasso.zsh-theme zhann.zsh-theme funky.zsh-theme muse.zsh-theme |
然后去用另外那个:
#ZSH_THEME="robbyrussell" ZSH_THEME="Honukai" |
也没有:
[email protected]:~% source .zshrc /Users/crifan/.oh-my-zsh/oh-my-zsh.sh:source:110: no such file or directory: /Users/crifan/.oh-my-zsh/themes/Honukai.zsh-theme |
换成:
#ZSH_THEME="robbyrussell" ZSH_THEME="agnoster" |
然后可以了:
但是是黑色的:
重启bash
问题依旧:
算了,还是换回系统自带的主题吧:
#ZSH_THEME="robbyrussell" ZSH_THEME="robbyrussell" |
然后,再去添加要启用的插件:
那些我希望在一开始使用 Zsh(oh-my-zsh) 时就知道的 – Xavier’s blog – SegmentFault
-》
Plugins Overview · robbyrussell/oh-my-zsh Wiki
然后打算把:
python的都开了
mac os x的都开了
plugins=(git osx brew python pip virtualenv virtualenvwrapper docker github gitignore gnu-utils svn yum debian systemd terminalapp pod) |
转载请注明:在路上 » [记录]在Mac中安装和使用oh-my-zsh