This is a Yeoman plugin for Oh My ZSH, compatible with yeoman version ≥1.0
.
It provides:
- aliases ;
- zsh autocomplete functions and options.
If you're using oh-my-zsh:
-
In the command line, change to oh-my-zsh's custom plugin directory :
cd ~/.oh-my-zsh/custom/plugins/
-
Clone the repository into a new
yo
directory:git clone https://github.com/lxyad/yo-zsh-plugin yo
-
Edit your
~/.zshrc
and addyo
to the list of plugins:plugins=( ... yo )
-
Source your current shell configuration:
source ~/.zshrc
The list of generators is built using the native --generators
option
$ yo<tab>
angular -- angular's generator
gulp-webapp -- gulp-webapp's generator
karma -- karma's generator
leaflet -- leaflet's generator
mocha -- mocha's generator
webapp -- Default Yeoman generator for scaffolding out a front-end web app
$ yo -<tab><tab>
--help -- show the help message and quit
--version -- show version information and quit
--help # Print this info and generator's options and usage
-f, --force # Overwrite files that already exist
--version # Print version
--no-color # Disable colors
--[no-]insight # Toggle anonymous tracking
--generators # Print available generators
Old aliases have been updated to use new yeoman's ≥1.0
commands, i.e. yo
, bower
, grunt
:
-
ym...
prefix stand foryeoman
:alias ymget='npm install -g yo grunt-cli bower' alias ym='yo help' alias ymv='yo --version' alias ymi='yo' alias ymb='grunt build' alias ymsv='grunt server' alias ymsd='grunt server:dist' alias ymst='grunt server:test' alias ymt='grunt test' alias ymii='bower install' alias ymui='bower uninstall' alias ymu='bower update' alias yml='bower list' alias yms='bower search' alias ymlu='bower lookup'