commit
b908feebcf
37 changed files with 1469 additions and 725 deletions
@ -1,11 +1,15 @@ |
|||||||
# cask plugin |
# Cask plugin |
||||||
|
|
||||||
Loads `cask` completion from non-standard locations, such as if installed |
[Cask](https://github.com/cask/cask) is a project management tool for Emacs that helps |
||||||
|
automate the package development cycle; development, dependencies, testing, building, |
||||||
|
packaging and more. |
||||||
|
|
||||||
|
This plugin loads `cask` completion from non-standard locations, such as if installed |
||||||
via Homebrew or others. To enable it, add `cask` to your plugins array: |
via Homebrew or others. To enable it, add `cask` to your plugins array: |
||||||
|
|
||||||
```zsh |
```zsh |
||||||
plugins=(... cask) |
plugins=(... cask) |
||||||
``` |
``` |
||||||
|
|
||||||
Make sure you have the `cask` directory in your `$PATH` before loading |
Make sure you have the `cask` directory in your `$PATH` before loading Oh My Zsh, |
||||||
Oh My Zsh, otherwise you'll get the "command not found" error. |
otherwise you'll get a "command not found" error. |
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,34 @@ |
|||||||
|
# dotenv |
||||||
|
|
||||||
|
Automatically load your project ENV variables from `.env` file when you `cd` into project root directory. |
||||||
|
|
||||||
|
Storing configuration in the environment is one of the tenets of a [twelve-factor app](http://www.12factor.net). Anything that is likely to change between deployment environments–such as resource handles for databases or credentials for external services–should be extracted from the code into environment variables. |
||||||
|
|
||||||
|
## Installation |
||||||
|
|
||||||
|
Just add the plugin to your `.zshrc`: |
||||||
|
|
||||||
|
```sh |
||||||
|
plugins=(git man dotenv) |
||||||
|
``` |
||||||
|
|
||||||
|
## Usage |
||||||
|
|
||||||
|
Create `.env` file inside your project directory and put your local ENV variables there. |
||||||
|
|
||||||
|
For example: |
||||||
|
```sh |
||||||
|
export AWS_S3_TOKEN=d84a83539134f28f412c652b09f9f98eff96c9a |
||||||
|
export SECRET_KEY=7c6c72d959416d5aa368a409362ec6e2ac90d7f |
||||||
|
export MONGO_URI=mongodb://127.0.0.1:27017 |
||||||
|
export PORT=3001 |
||||||
|
``` |
||||||
|
`export` is optional. This format works as well: |
||||||
|
```sh |
||||||
|
AWS_S3_TOKEN=d84a83539134f28f412c652b09f9f98eff96c9a |
||||||
|
SECRET_KEY=7c6c72d959416d5aa368a409362ec6e2ac90d7f |
||||||
|
MONGO_URI=mongodb://127.0.0.1:27017 |
||||||
|
PORT=3001 |
||||||
|
``` |
||||||
|
|
||||||
|
**It's strongly recommended to add `.env` file to `.gitignore`**, because usually it contains sensitive information such as your credentials, secret keys, passwords etc. You don't want to commit this file, it supposed to be local only. |
||||||
@ -0,0 +1,10 @@ |
|||||||
|
#!/bin/zsh |
||||||
|
|
||||||
|
source_env() { |
||||||
|
if [[ -f .env ]]; then |
||||||
|
source .env |
||||||
|
fi |
||||||
|
} |
||||||
|
|
||||||
|
autoload -U add-zsh-hook |
||||||
|
add-zsh-hook chpwd source_env |
||||||
@ -1,14 +1,26 @@ |
|||||||
# React Native |
# React Native plugin |
||||||
|
|
||||||
**Maintainer:** [BilalBudhani](https://github.com/BilalBudhani) |
This plugin adds completion for [`react-native`](https://facebook.github.io/react-native/). |
||||||
|
It also defines a few [aliases](#aliases) for the commands more frequently used. |
||||||
|
|
||||||
### List of Aliases |
To enable, add `react-native` to your `plugins` array in your zshrc file: |
||||||
|
|
||||||
Alias | React Native command |
```zsh |
||||||
------|--------------------- |
plugins=(... react-native) |
||||||
**rnand** | *react-native run-android* |
``` |
||||||
**rnios** | *react-native run-ios* |
|
||||||
**rnios4s** | *react-native run-ios --simulator "iPhone 4s"* |
|
||||||
**rnios5** | *react-native run-ios --simulator "iPhone 5"* |
|
||||||
**rnios5s** | *react-native run-ios --simulator "iPhone 5s"* |
|
||||||
|
|
||||||
|
## Aliases |
||||||
|
|
||||||
|
| Alias | React Native command | |
||||||
|
|:------------|:-----------------------------------------------| |
||||||
|
| **rn** | `react-native` | |
||||||
|
| **rns** | `react-native start` | |
||||||
|
| **rnlink** | `react-native link` | |
||||||
|
| _App testing_ | |
||||||
|
| **rnand** | `react-native run-android` | |
||||||
|
| **rnios** | `react-native run-ios` | |
||||||
|
| **rnios4s** | `react-native run-ios --simulator "iPhone 4s"` | |
||||||
|
| **rnios5** | `react-native run-ios --simulator "iPhone 5"` | |
||||||
|
| **rnios5s** | `react-native run-ios --simulator "iPhone 5s"` | |
||||||
|
| **rnios6** | `react-native run-ios --simulator "iPhone 6"` | |
||||||
|
| **rnios6s** | `react-native run-ios --simulator "iPhone 6s"` | |
||||||
|
|||||||
Loading…
Reference in new issue