fccaaf2fc60149baab966acaeae35f55325e6f98
- Author
- Marc Cornellà <marc@mcornella.com>
- Committer
- Marc Cornellà <marc@mcornella.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/plugins/heroku-alias/README.md b/plugins/heroku-alias/README.md
2index 4b7b953fdf9f0064e10dba0f0310c37fe631bee6..4ecb07a23284d78dedfac76c97caaa0308febf8c 100644
3--- a/plugins/heroku-alias/README.md
4+++ b/plugins/heroku-alias/README.md
5@@ -1,127 +1,140 @@
6 # heroku-alias
7-🧬 Full alias for heroku cli
8
9-|🚀 last maj|📡 source|
10-|---|---|
11-|02/06/2020|[heroku cli doc](https://devcenter.heroku.com/articles/heroku-cli-commands)|
12+Full alias list for Heroku CLI.
13
14-# Alias list
15+To use it, add `heroku-alias` to the plugins array in your zshrc file:
16
17-## general
18-| Alias | Command |
19-| ------------- | ------------- |
20-| h | heroku |
21-| hauto | heroku autocomplete $(echo $SHELL) |
22-| hl | heroku local |
23-
24-## config
25-| Alias | Command |
26-| ------------- | ------------- |
27-| hc | heroku config |
28-| hca | heroku config -a |
29-| hcr | heroku config -r |
30-| hcs | heroku config:set |
31-| hcu | heroku config:unset |
32-| hcfile | function hcfile bellow |
33-
34-```sh
35-hcfile() {
36- echo " Which platform [-r/a name] ? "
37- read platform
38- echo " Which file ? "
39- read file
40- while read line;
41- do heroku config:set "$platform" "$line";
42- done < "$file"
43-}
44+```zsh
45+plugins=(... heroku-alias)
46 ```
47
48-## apps and favorites
49-| Alias | Command |
50-| ------------- | ------------- |
51-| ha | heroku apps |
52-| hpop | heroku create |
53-| hkill | heroku apps:destroy |
54-| hlog | heroku apps:errors |
55-| hfav | heroku apps:favorites |
56-| hfava | heroku apps:favorites:add |
57+## Requirements
58+
59+- [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)
60+
61+| 🚀 last maj | 📡 source |
62+| ---------- | --------------------------------------------------------------------------- |
63+| 02/06/2020 | [heroku cli doc](https://devcenter.heroku.com/articles/heroku-cli-commands) |
64+
65+## Aliases
66+
67+### general
68+
69+| Alias | Command |
70+| ----- | ---------------------------------- |
71+| h | heroku |
72+| hauto | heroku autocomplete $(echo $SHELL) |
73+| hl | heroku local |
74+
75+### config
76+
77+| Alias | Command |
78+| ------ | ---------------------- |
79+| hc | heroku config |
80+| hca | heroku config -a |
81+| hcr | heroku config -r |
82+| hcs | heroku config:set |
83+| hcu | heroku config:unset |
84+
85+Also, you can use the `hcfile` function to set multiple config variables from a file,
86+which asks you for a platform and a config file to read the configuration from.
87+
88+### apps and favorites
89+
90+| Alias | Command |
91+| ----- | ---------------------------- |
92+| ha | heroku apps |
93+| hpop | heroku create |
94+| hkill | heroku apps:destroy |
95+| hlog | heroku apps:errors |
96+| hfav | heroku apps:favorites |
97+| hfava | heroku apps:favorites:add |
98 | hfavr | heroku apps:favorites:remove |
99-| hai | heroku apps:info |
100-| hair | heroku apps:info -r |
101-| haia | heroku apps:info -a |
102-
103-# auth
104-| Alias | Command |
105diff --git a/plugins/heroku-alias/heroku.alias.sh b/plugins/heroku-alias/heroku-alias.plugin.zsh
106rename from plugins/heroku-alias/heroku.alias.sh
107rename to plugins/heroku-alias/heroku-alias.plugin.zsh