mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-16 22:42:21 +08:00
commit
f17a33b98e
@ -1,52 +0,0 @@
|
||||
JonathanKang is translating
|
||||
|
||||
How To Enable Tab Complete Heroku Commands In Oh-My-Zsh
|
||||
================================================================================
|
||||
**Heroku** Client is the (Command Line Interface) CLI tool for creating and managing Heroku apps.
|
||||
|
||||
Requirements:
|
||||
|
||||
- Heroku toolbelt
|
||||
- Oh-My-Zsh ([How to Install][1])
|
||||
|
||||
Note this post is not talk about heroku, it’s just to show users how they can ease typing of commands with oh-my-zsh, so am NOT going to talk into detail on doing things. Also you should have [heroku toolbelt][2] installed to make this work. Is simple for Ubuntu and Debian derivatives,Install by running the command below:
|
||||
|
||||
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
|
||||
|
||||
Open Terminal and login into heroku with you account created [here][3]:
|
||||
|
||||
heroku login
|
||||
Enter your Heroku credentials.
|
||||
Email: enockseth@unixmen.com
|
||||
Password (typing will be hidden):
|
||||
Authentication successful.
|
||||
|
||||
That shows heroku is up and running.
|
||||
|
||||
Open **.zshrc** in your favourite text editor
|
||||
|
||||
vim .zshrc
|
||||
|
||||
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/zsh_git.png)
|
||||
|
||||
By default git is the only plugin enabled.
|
||||
|
||||
Add **heroku** to the plugins section as shown below:
|
||||
|
||||
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/zsh_heroku.png)
|
||||
|
||||
Restart teminal, type **heroku** press tab and you’re good to go:
|
||||
|
||||
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/heroku_tab_complete.png)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.unixmen.com/enable-tab-complete-heroku-commands-oh-zsh/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://www.unixmen.com/install-oh-zsh-ubuntu-arch-linux-fedora/
|
||||
[2]:https://toolbelt.heroku.com/
|
||||
[3]:https://www.heroku.com/
|
@ -0,0 +1,50 @@
|
||||
如何在Oh-My-Zsh中启用Heroku命令tab按键补全功能
|
||||
================================================================================
|
||||
**Heroku**客户端是创建和管理Heroku应用的命令行界面工具。
|
||||
|
||||
需求:
|
||||
|
||||
- Heroku toolbelt
|
||||
- Oh-My-Zsh ([如何安装][1])
|
||||
|
||||
本文不是讲关于hereku的知识,也不是讲关于heroku的使用细节,而是仅仅展示给用户他们怎样可以使用oh-my-zsh来方便地敲写命令。此外你还应该安装[heroku toolbelt][2]来进行本文的相应的操作。对于Ubuntu和Debian发行版,你可以通过运行下面的命令来安装:
|
||||
|
||||
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
|
||||
|
||||
打开终端,用你在[这里]创建的用户登陆heroku:
|
||||
|
||||
heroku登陆
|
||||
输入您的Heroku认证。
|
||||
邮箱: enockseth@unixmen.com
|
||||
密码 (您的输入会被隐藏):
|
||||
认证成功。
|
||||
|
||||
这显示heroku正在运行。
|
||||
|
||||
使用你喜欢的文本编辑器打开**.zshrc**:
|
||||
|
||||
vim .zshrc
|
||||
|
||||
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/zsh_git.png)
|
||||
|
||||
git是唯一默认启用的插件。
|
||||
|
||||
在下图显示的插件选择区添加**heroku**:
|
||||
|
||||
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/zsh_heroku.png)
|
||||
|
||||
重启终端,输入**heroku**,按下tab键,到此就搞定啦:
|
||||
|
||||
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/heroku_tab_complete.png)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.unixmen.com/enable-tab-complete-heroku-commands-oh-zsh/
|
||||
|
||||
译者:[JonathanKang](https://github.com/JonathanKang) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://www.unixmen.com/install-oh-zsh-ubuntu-arch-linux-fedora/
|
||||
[2]:https://toolbelt.heroku.com/
|
||||
[3]:https://www.heroku.com/
|
Loading…
Reference in New Issue
Block a user