码迷,mamicode.com
首页 > 其他好文 > 详细

zsh的简单使用

时间:2015-06-13 23:11:56      阅读:1631      评论:0      收藏:0      [点我收藏+]

标签:

zsh

赶时髦装zshell,还有一个原因是zsh兼容bash,会用bash就会zsh。

1. 安装zsh及oh-my-zsh

centos下面用yum,ubuntu 下面用apt-get。然后下载zshrc,网上有个开源的配置文件特别好用,叫oh-my-zsh的神器。

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

2. oh-my-zsh的plugins

打开配置文件
vim ~/.zshrc

plugins=(git)

默认只加载了git插件,可以把其他需要给整加上去,也可以自己扩展插件,插件的目录在~/.oh-my-zsh/plugins/

adb                      command-not-found        git-prompt               lighthouse               python                   systemadmin
ant                      common-aliases           git-remote-branch        lol                      rails                    systemd
apache2-macports         compleat                 gitfast                  macports                 rails3                   taskwarrior
archlinux                composer                 github                   marked2                  rails4                   terminalapp
atom                     copydir                  gitignore                mercurial                rake                     terminitor
autoenv                  copyfile                 glassfish                meteor                   rake-fast                textastic
autojump                 cp                       gnu-utils                mix                      rand-quote               textmate
autopep8                 cpanm                    go                       mosh                     rbenv                    themes
aws                      debian                   golang                   mvn                      rbfu                     thor
battery                  dircycle                 gpg-agent                mysql-macports           rebar                    tmux
bbedit                   dirhistory               gradle                   nanoc                    redis-cli                tmuxinator
bgnotify                 dirpersist               grails                   nmap                     repo                     torrent
boot2docker              django                   grunt                    node                     rsync                    ubuntu
bower                    docker                   heroku                   npm                      ruby                     urltools
brew                     emacs                    history                  nvm                      rvm                      vagrant
brew-cask                ember-cli                history-substring-search nyan                     safe-paste               vi-mode
bundler                  emoji-clock              httpie                   osx                      sbt                      vim-interaction
bwana                    encode64                 iwhois                   pass                     scala                    virtualenv
cabal                    extract                  jake-node                pep8                     scd                      virtualenvwrapper
cake                     fabric                   jhbuild                  per-directory-history    screen                   vundle
cakephp3                 fasd                     jira                     perl                     sfffe                    wakeonlan
capistrano               fastfile                 jruby                    phing                    singlechar               wd
cask                     fbterm                   jsontools                pip                      sprunge                  web-search
catimg                   forklift                 jump                     pj                       ssh-agent                wp-cli
celery                   frontend-search          kate                     pod                      sublime                  xcode
chruby                   gas                      knife                    postgres                 sudo                     yii
chucknorris              gem                      knife_ssh                pow                      supervisor               yii2
cloudapp                 git                      laravel                  powder                   suse                     yum
coffee                   git-extras               laravel4                 powify                   svn                      z
colemak                  git-flow                 laravel5                 profiles                 svn-fast-info            zeus
colored-man              git-flow-avh             last-working-dir         pyenv                    symfony                  zsh_reload
colorize                 git-hubflow              lein                     pylint                   symfony2

里面还是比较全的。oh-my-zsh很强大。

3. 后记

试用了下这东西还真是挺好用的,把他当成一个增强型的bash就ok了。mac上面自带不用额外安装。要经常用用就熟练了,建议把shell就改成zsh了。

chsh /bin/zsh

zsh的简单使用

标签:

原文地址:http://blog.csdn.net/aca_jingru/article/details/46485203

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!