1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-21 13:20:07 +00:00

Feature/ionic plugin aliases (#8494)

* Add DS_Store to gitignore

* Add ionic aliases

* Add ionic plugin readme
This commit is contained in:
khalil choudhry 2019-12-29 09:35:31 +05:00 committed by Robby Russell
parent 016dd30f4c
commit b0be0439e5
3 changed files with 46 additions and 0 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@ custom/
cache/
log/
*.swp
.DS_Store

30
plugins/ionic/README.md Normal file
View file

@ -0,0 +1,30 @@
# Ionic plugin
This plugin adds completion for the [Ionic CLI](https://ionicframework.com/docs/cli),
as well as some aliases for common Ionic commands.
To use it, add `ionic` to the plugins array in your zshrc file:
```zsh
plugins=(... ionic)
```
## Aliases
| Alias | Command | Description |
|-------|--------------------------------------|------------------------------------------------------------------|
| iv | `ionic --version` | Check Ionic version |
| ih | `ionic --help` | Ionic help command |
| ist | `ionic start` | Create a new project |
| ii | `ionic info` | Print system/environment info |
| is | `ionic serve` | Start a local dev server for app dev/testing |
| icba | `ionic cordova build android` | Build web assets and prepare app for android platform targets |
| icbi | `ionic cordova build ios` | Build web assets and prepare app for ios platform targets |
| icra | `ionic cordova run android` | Run an Ionic project on a connected android device |
| icri | `ionic cordova run ios` | Run an Ionic project on a connected ios device |
| icrsa | `ionic cordova resources android` | Automatically create icon and splash screen resources for android|
| icrsi | `ionic cordova resources ios` | Automatically create icon and splash screen resources for ios |
| icpaa | `ionic cordova platform add android` | Add Cordova android platform targets |
| icpai | `ionic cordova platform add ios` | Add Cordova ios platform targets |
| icpra | `ionic cordova platform rm android` | Remove Cordova platform targets |
| icpri | `ionic cordova platform rm ios` | Remove Cordova platform targets |

View file

@ -0,0 +1,15 @@
alias iv="ionic --version"
alias ih="ionic --help"
alias ist="ionic start"
alias ii="ionic info"
alias is="ionic serve"
alias icba="ionic cordova build android"
alias icbi="ionic cordova build ios"
alias icra="ionic cordova run android"
alias icri="ionic cordova run ios"
alias icrsa="ionic cordova resources android"
alias icrsi="ionic cordova resources ios"
alias icpaa="ionic cordova platform add android"
alias icpai="ionic cordova platform add ios"
alias icpra="ionic cordova platform rm android"
alias icpri="ionic cordova platform rm ios"