Commit 610b2529 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

Clean up plugin READMEs and a few plugins

- fasd
- history
- mercurial
- pylint
- repo
- yii2
parent ff6d111d
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
This plugin uploads data and fetch URL from the pastebin http://sprunge.us This plugin uploads data and fetch URL from the pastebin http://sprunge.us
To enable it, add 'sprunge' to your plugins: To enable it, add 'sprunge' to your plugins:
```
```zsh
plugins=(... sprunge) plugins=(... sprunge)
``` ```
......
...@@ -2,25 +2,13 @@ ...@@ -2,25 +2,13 @@
Easily prefix your current or previous commands with `sudo` by pressing <kbd>esc</kbd> twice Easily prefix your current or previous commands with `sudo` by pressing <kbd>esc</kbd> twice
## Enabling the plugin To use it, add `sudo` to the plugins array in your zshrc file:
1. Open your `.zshrc` file and add `sudo` in the plugins section: ```zsh
plugins=(... sudo)
```zsh ```
plugins=(
# all your enabled plugins
sudo
)
```
2. Restart your shell or restart your Terminal session:
```console
$ exec zsh
$
```
## Usage examples ## Usage
### Current typed commands ### Current typed commands
......
...@@ -5,6 +5,7 @@ Supervisor is a client/server system that allows its users to monitor and contro ...@@ -5,6 +5,7 @@ Supervisor is a client/server system that allows its users to monitor and contro
of processes on UNIX-like operating systems. of processes on UNIX-like operating systems.
To use it, add `supervisor` to the plugins array in your zshrc file: To use it, add `supervisor` to the plugins array in your zshrc file:
```zsh ```zsh
plugins=(... supervisor) plugins=(... supervisor)
``` ```
......
...@@ -4,6 +4,7 @@ Faster alternative to the main SVN plugin implementation. Works with svn 1.6 and ...@@ -4,6 +4,7 @@ Faster alternative to the main SVN plugin implementation. Works with svn 1.6 and
Use as a drop-in replacement to the svn plugin, not as complementary. Use as a drop-in replacement to the svn plugin, not as complementary.
To use it, add `svn-fast-info` to the plugins array in your zshrc file: To use it, add `svn-fast-info` to the plugins array in your zshrc file:
```zsh ```zsh
plugins=(... svn-fast-info) plugins=(... svn-fast-info)
``` ```
......
...@@ -4,10 +4,15 @@ This plugin adds smart tab completion for [TaskWarrior](https://taskwarrior.org/ ...@@ -4,10 +4,15 @@ This plugin adds smart tab completion for [TaskWarrior](https://taskwarrior.org/
It uses the zsh tab completion script (`_task`) shipped with TaskWarrior for the It uses the zsh tab completion script (`_task`) shipped with TaskWarrior for the
completion definitions. completion definitions.
The latest version pulled in from the official project is of January 1st, 2015. To use it, add `taskwarrior` to the plugins array in your zshrc file:
```zsh
plugins=(... taskwarrior)
```
## Examples ## Examples
Typing `task [TAB]` will give you a list of commands, `task 66[TAB]` shows a Typing `task [TAB]` will give you a list of commands, `task 66[TAB]` shows a
list of available modifications for that task, etcetera. list of available modifications for that task, etcetera.
The latest version pulled in from the official project is of January 1st, 2015.
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
The plugin adds a function for the [TextMate](https://macromates.com) editor. The plugin adds a function for the [TextMate](https://macromates.com) editor.
To use it, add `textmate` to the plugins array of your zshrc file: To use it, add `textmate` to the plugins array of your zshrc file:
```
```zsh
plugins=(... textmate) plugins=(... textmate)
``` ```
......
...@@ -7,7 +7,8 @@ To use it add `tmux` to the plugins array in your zshrc file. ...@@ -7,7 +7,8 @@ To use it add `tmux` to the plugins array in your zshrc file.
plugins=(... tmux) plugins=(... tmux)
``` ```
The plugin also supports the following - The plugin also supports the following:
- determines if tmux is installed or not, if not, prompts user to install tmux - determines if tmux is installed or not, if not, prompts user to install tmux
- determines if the terminal supports the 256 colors or not, sets the appropriate configuration variable - determines if the terminal supports the 256 colors or not, sets the appropriate configuration variable
- sets the correct local config file to use - sets the correct local config file to use
...@@ -24,7 +25,6 @@ The plugin also supports the following - ...@@ -24,7 +25,6 @@ The plugin also supports the following -
| `tkss` | tmux kill-session -t | Terminate named running tmux session | | `tkss` | tmux kill-session -t | Terminate named running tmux session |
| `tmux` | `_zsh_tmux_plugin_run` | Start a new tmux session | | `tmux` | `_zsh_tmux_plugin_run` | Start a new tmux session |
## Configuration Variables ## Configuration Variables
| Variable | Description | | Variable | Description |
......
...@@ -12,8 +12,8 @@ plugins=(... tmuxinator) ...@@ -12,8 +12,8 @@ plugins=(... tmuxinator)
## Aliases ## Aliases
| Alias | Command | Description | | Alias | Command | Description |
| ------ | ---------------- | ------------------------ | | ----- | ---------------- | ------------------------ |
| `txs ` | tmuxinator start | Start Tmuxinator | | `txs` | tmuxinator start | Start Tmuxinator |
| `txo ` | tmuxinator open | Open project for editing | | `txo` | tmuxinator open | Open project for editing |
| `txn ` | tmuxinator new | Create project | | `txn` | tmuxinator new | Create project |
| `txl ` | tmuxinator list | List projects | | `txl` | tmuxinator list | List projects |
# wakeonlan
This plugin provides a wrapper around the "wakeonlan" tool available from most This plugin provides a wrapper around the "wakeonlan" tool available from most
distributions' package repositories, or from the following website: distributions' package repositories, or from [the following website](https://github.com/jpoliv/wakeonlan).
To use it, add `wakeonlan` to the plugins array in your zshrc file:
```zsh
plugins=(... wakeonlan)
```
http://gsd.di.uminho.pt/jpo/software/wakeonlan/ ## Usage
In order to use this wrapper, create the ~/.wakeonlan directory, and place in In order to use this wrapper, create the `~/.wakeonlan` directory, and place in
that directory one file for each device you would like to be able to wake. Give that directory one file for each device you would like to be able to wake. Give
the file a name that describes the device, such as its hostname. Each file the file a name that describes the device, such as its hostname. Each file
should contain a line with the mac address of the target device and the network should contain a line with the mac address of the target device and the network
...@@ -12,15 +20,21 @@ broadcast address. ...@@ -12,15 +20,21 @@ broadcast address.
For instance, there might be a file ~/.wakeonlan/leto with the following For instance, there might be a file ~/.wakeonlan/leto with the following
contents: contents:
```
00:11:22:33:44:55:66 192.168.0.255 00:11:22:33:44:55:66 192.168.0.255
```
To wake that device, use the following command: To wake that device, use the following command:
# wake leto ```console
$ wake leto
```
The available device names will be autocompleted, so: The available device names will be autocompleted, so:
# wake <tab> ```console
$ wake <tab>
```
...will suggest "leto", along with any other configuration files that were ...will suggest "leto", along with any other configuration files that were
placed in the ~/.wakeonlan directory. placed in the ~/.wakeonlan directory.
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
The plugin adds autocomplete commands and subcommands for [yii](https://www.yiiframework.com/). The plugin adds autocomplete commands and subcommands for [yii](https://www.yiiframework.com/).
To use it, add `yii` to the plugins array of your zshrc file: To use it, add `yii` to the plugins array of your zshrc file:
```
```zsh
plugins=(... yii) plugins=(... yii)
``` ```
......
...@@ -4,7 +4,7 @@ This plugin adds useful aliases for common [Yum](http://yum.baseurl.org/) comman ...@@ -4,7 +4,7 @@ This plugin adds useful aliases for common [Yum](http://yum.baseurl.org/) comman
To use it, add `yum` to the plugins array in your zshrc file: To use it, add `yum` to the plugins array in your zshrc file:
``` ```zsh
plugins=(... yum) plugins=(... yum)
``` ```
......
## zeus # zeus plugin
**Maintainer:** [b4mboo](https://github.com/b4mboo)
[Zeus](https://github.com/burke/zeus) preloads your Rails environment and forks that
* `zi` aliases `zeus init` process whenever needed. This effectively speeds up Rails' boot process to under 1 sec.
* `zinit` aliases `zeus init` This plugin adds autocompletion for zeus and aliases for common usage.
* `zs` aliases `zeus start` To use it, add `zeus` to the plugins array in your zshrc file:
* `ztart` aliases `zeus start`
```zsh
* `zc` aliases `zeus console` plugins=(... zeus)
* `zonsole` aliases `zeus console` ```
* `zsr` aliases `zeus server` You also need to have the `zeus` gem installed.
* `zerver` aliases `zeus server`
| Alias | Command |
* `zr` aliases `zeus rake` |:-------------|:-------------------------------------------------------------------|
* `zake` aliases `zeus rake` | _zi_ | `zeus init` |
| _zinit_ | `zeus init` |
* `zg` aliases `zeus generate` | _zs_ | `zeus start` |
* `zenerate` aliases `zeus generate` | _ztart_ | `zeus start` |
| _zc_ | `zeus console` |
* `zrn` aliases `zeus runner` | _zonsole_ | `zeus console` |
* `zunner` aliases `zeus runner` | _zsr_ | `zeus server` |
| _zerver_ | `zeus server` |
* `zcu` aliases `zeus cucumber` | _zr_ | `noglob zeus rake` |
* `zucumber` aliases `zeus cucumber` | _zake_ | `noglob zeus rake` |
* `zwip` aliases `zeus cucumber --profile wip` | _zg_ | `zeus generate` |
| _zenerate_ | `zeus generate` |
* `zspec` aliases `zeus rspec` | _zrn_ | `zeus runner` |
| _zunner_ | `zeus runner` |
* `zt` aliases `zeus test` | _zcu_ | `zeus cucumber` |
* `zest` aliases `zeus test` | _zucumber_ | `zeus cucumber` |
| _zwip_ | `zeus cucumber --profile wip` |
* `zu` aliases `zeus test test/unit/*` | _zspec_ | `zeus rspec` |
* `zunits` aliases `zeus test test/unit/*` | _zt_ | `zeus test` |
| _zest_ | `zeus test` |
* `zf` aliases `zeus test test/functional/*` | _zu_ | `zeus test test/unit/*` |
* `zunctional` aliases `zeus test test/functional/*` | _zunits_ | `zeus test test/unit/*` |
| _zf_ | `zeus test test/functional/*` |
* `za` aliases `zeus test test/unit/*; zeus test test/functional/; zeus cucumber` | _zunctional_ | `zeus test test/functional/*` |
* `zall` aliases `zeus test test/unit/*; zeus test test/functional/; zeus cucumber` | _za_ | `zeus test test/unit/*; zeus test test/functional/; zeus cucumber` |
| _zall_ | `zeus test test/unit/*; zeus test test/functional/; zeus cucumber` |
* `zsw` aliases `rm .zeus.sock` | _zsw_ | `rm .zeus.sock` |
* `zweep` aliases `rm .zeus.sock` | _zweep_ | `rm .zeus.sock` |
| _zdbr_ | `zeus rake db:reset db:test:prepare` |
* `zdbr` aliases `zeus rake db:reset db:test:prepare` | _zdbreset_ | `zeus rake db:reset db:test:prepare` |
* `zdbreset` aliases `zeus rake db:reset db:test:prepare` | _zdbm_ | `zeus rake db:migrate db:test:prepare` |
| _zdbmigrate_ | `zeus rake db:migrate db:test:prepare` |
* `zdbm` aliases `zeus rake db:migrate db:test:prepare` | _zdbc_ | `zeus rake db:create` |
* `zdbmigrate` aliases `zeus rake db:migrate db:test:prepare` | _zdbcm_ | `zeus rake db:create db:migrate db:test:prepare` |
* `zdbc` aliases `zeus rake db:create`
* `zdbcm` aliases `zeus rake db:create db:migrate db:test:prepare`
## Installation
Add zeus to the plugins line of your `.zshconfig` file (e.g. `plugins=(rails git zeus)`)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment