- fasd - history - mercurial - pylint - repo - yii2master
parent
ff6d111d79
commit
610b2529d2
73 changed files with 546 additions and 553 deletions
@ -1,19 +1,21 @@ |
||||
## APACHE2 MACPORTS PLUGIN |
||||
# apache2-macports plugin |
||||
|
||||
Enables aliases to control a local Apache2 installed via [MacPorts](https://www.macports.org/). |
||||
|
||||
--- |
||||
To use it, add `apache2-macports` to the plugins array in your zshrc file: |
||||
|
||||
### FEATURES |
||||
```zsh |
||||
plugins=(... apache2-macports) |
||||
``` |
||||
|
||||
| Alias | Function | Description | |
||||
|:--------------:|:-------------------------------------------------------------------------------|----------------------:| |
||||
| apache2restart | sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper restart | Restart apache daemon | |
||||
| apache2start | sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper start | Start apache daemon | |
||||
| apache2stop | sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper stop | Stop apache daemon | |
||||
## Aliases |
||||
|
||||
--- |
||||
| Alias | Function | Description | |
||||
|----------------|-----------------------------------------|-----------------------| |
||||
| apache2restart | `sudo /path/to/apache2.wrapper restart` | Restart apache daemon | |
||||
| apache2start | `sudo /path/to/apache2.wrapper start` | Start apache daemon | |
||||
| apache2stop | `sudo /path/to/apache2.wrapper stop` | Stop apache daemon | |
||||
|
||||
### CONTRIBUTORS |
||||
- Alexander Rinass (alex@rinass.net) |
||||
## Contributors |
||||
|
||||
--- |
||||
- Alexander Rinass (alex@rinass.net) |
||||
|
||||
@ -1,13 +1,16 @@ |
||||
if [ $commands[fasd] ]; then # check if fasd is installed |
||||
fasd_cache="${ZSH_CACHE_DIR}/fasd-init-cache" |
||||
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then |
||||
fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install \ |
||||
zsh-wcomp zsh-wcomp-install >| "$fasd_cache" |
||||
fi |
||||
source "$fasd_cache" |
||||
unset fasd_cache |
||||
# check if fasd is installed |
||||
if (( ! ${+commands[fasd]} )); then |
||||
return |
||||
fi |
||||
|
||||
alias v='f -e "$EDITOR"' |
||||
alias o='a -e xdg-open' |
||||
alias j='zz' |
||||
fasd_cache="${ZSH_CACHE_DIR}/fasd-init-cache" |
||||
if [[ "$commands[fasd]" -nt "$fasd_cache" || ! -s "$fasd_cache" ]]; then |
||||
fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install \ |
||||
zsh-wcomp zsh-wcomp-install >| "$fasd_cache" |
||||
fi |
||||
source "$fasd_cache" |
||||
unset fasd_cache |
||||
|
||||
alias v='f -e "$EDITOR"' |
||||
alias o='a -e xdg-open' |
||||
alias j='zz' |
||||
|
||||
@ -1,15 +1,23 @@ |
||||
## forklift |
||||
# forklift |
||||
|
||||
Plugin for ForkLift, an FTP application for OS X. |
||||
|
||||
### Requirements |
||||
To use it, add `forklift` to the plugins array in your zshrc file: |
||||
|
||||
```zsh |
||||
plugins=(... forklift) |
||||
``` |
||||
|
||||
## Requirements |
||||
|
||||
* [ForkLift](https://binarynights.com/) |
||||
|
||||
### Usage |
||||
## Usage |
||||
|
||||
<code>fl [*file_or_folder*]</code> |
||||
`fl [<file_or_folder>]` |
||||
|
||||
* If `fl` is called without arguments then the current folder is opened in ForkLift. This is equivalent to `fl .`. |
||||
|
||||
* If `fl` is called with a directory as the argument, then that directory is opened in ForkLift. If called with a non-directory file as the argument, then the file's parent directory is opened. |
||||
* If `fl` is called with a directory as the argument, then that directory is opened in ForkLift |
||||
|
||||
* If `fl` is called with a non-directory file as the argument, then the file's parent directory is opened. |
||||
|
||||
@ -1,19 +1,10 @@ |
||||
ZSH-Geeknote |
||||
============ |
||||
# Geeknote plugin |
||||
|
||||
[Geeknote](https://github.com/VitaliyRodnenko/geeknote) plugin for oh-my-zsh. |
||||
This plugin provides autocompletion for [Geeknote](https://github.com/VitaliyRodnenko/geeknote) |
||||
and an alias for `geeknote` called `gn`. |
||||
|
||||
Plugins provides: |
||||
To use it, add `geeknote` to the plugins array in your zshrc file: |
||||
|
||||
* auto completion of commands and their options |
||||
* alias `gn` |
||||
|
||||
## Installation |
||||
|
||||
### oh-my-zsh |
||||
This plugin is already bundled in oh-my-zsh. To enable just configure plugin definition |
||||
|
||||
plugins=( ... geeknote ...) |
||||
|
||||
### Antigen |
||||
Use [Antigen's](https://github.com/zsh-users/antigen) bundle command to install by adding `antigen bundle s7anley/zsh-geeknote` to your `.zshrc` along with your other plugins. |
||||
```zsh |
||||
plugins=( ... geeknote ...) |
||||
``` |
||||
|
||||
@ -1,15 +1,17 @@ |
||||
## history |
||||
# history plugin |
||||
|
||||
Provides a couple of convenient aliases for using the `history` command to examine your command line history. |
||||
|
||||
### Requirements |
||||
To use it, add `history` to the plugins array in your zshrc file: |
||||
|
||||
* None. |
||||
```zsh |
||||
plugins=(... history) |
||||
``` |
||||
|
||||
### Usage |
||||
## Aliases |
||||
|
||||
* If `h` is called, your command history is listed. Equivalent to using `history` |
||||
|
||||
* If `hsi` is called with an argument, a **case insensitive** `grep` search is performed on your command history, looking for commands that match the argument provided |
||||
|
||||
* If `hsi` is called without an argument you will help on `grep` arguments |
||||
| Alias | Command | Description | |
||||
|-------|----------------------|------------------------------------------------------------------| |
||||
| `h` | `history` | Prints your command history | |
||||
| `hs` | `history \| grep` | Use grep to search your command history | |
||||
| `hsi` | `history \| grep -i` | Use grep to do a case-insensitive search of your command history | |
||||
|
||||
@ -1,8 +1,3 @@ |
||||
alias h='history' |
||||
|
||||
function hs |
||||
{ |
||||
history | grep $* |
||||
} |
||||
|
||||
alias hsi='hs -i' |
||||
alias hs='history | grep' |
||||
alias hsi='history | grep -i' |
||||
|
||||
@ -1,61 +1,66 @@ |
||||
# Mercurial plugin |
||||
### Usage |
||||
Update .zshrc: |
||||
|
||||
1. Add name to the list of plugins, e.g. `plugins=(... mercurial ...)` |
||||
(that is pretty obvious). |
||||
2. Switch to a theme which uses `hg_prompt_info`. |
||||
|
||||
Or, customize the `$PROMPT` variable of your current theme to contain current folder mercurial repo info. This can be done by putting a custom version of the theme in `$ZSH_CUSTOM` or by changing `$PROMPT` in `.zshrc` after loading the theme. |
||||
|
||||
The `robbyrussell` theme is used by default, so you need to modify `$PROMPT` var by adding `$(hg_prompt_info)` after `$(git_prompt_info)`, so it looks like this: |
||||
|
||||
```zsh |
||||
PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)$(hg_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' |
||||
``` |
||||
|
||||
3. Initialize additional vars used in plugin. So in short put next in **.zshrc**: |
||||
|
||||
``` |
||||
ZSH_THEME_HG_PROMPT_PREFIX="%{$fg_bold[magenta]%}hg:(%{$fg[red]%}" |
||||
ZSH_THEME_HG_PROMPT_SUFFIX="%{$reset_color%}" |
||||
ZSH_THEME_HG_PROMPT_DIRTY="%{$fg[magenta]%}) %{$fg[yellow]%}✗%{$reset_color%}" |
||||
ZSH_THEME_HG_PROMPT_CLEAN="%{$fg[magenta]%})" |
||||
``` |
||||
|
||||
### What's inside? |
||||
#### Adds handy aliases: |
||||
###### general |
||||
* `hga` - 'hg add` |
||||
* `hgc` - `hg commit` |
||||
* `hgb` - `hg branch` |
||||
* `hgba` - `hg branches` |
||||
* `hgbk` - `hg bookmarks` |
||||
* `hgco` - `hg checkout` |
||||
* `hgd` - `hg diff` |
||||
* `hged` - `hg diffmerge` |
||||
|
||||
###### pull and update |
||||
* `hgi` - `hg incoming` |
||||
* `hgl` - `hg pull -u` |
||||
* `hglr` - `hg pull --rebase` |
||||
* `hgo` - `hg outgoing` |
||||
* `hgp` - `hg push` |
||||
* `hgs` - `hg status` |
||||
* `hgsl` - `hg log --limit 20 --template "{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n"` |
||||
|
||||
###### this is the 'git commit --amend' equivalent |
||||
* `hgca` - `hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip` |
||||
|
||||
###### list unresolved files (since hg does not list unmerged files in the status command) |
||||
* `hgun` - `hg resolve --list` |
||||
|
||||
#### Displays repo branch and directory status in prompt |
||||
This is the same as git plugin does. |
||||
|
||||
**Note**: Additional changes to **.zshrc**, or using a theme designed to use `hg_prompt_info`, are required in order for this to work. |
||||
|
||||
### Mantainers |
||||
[ptrv](https://github.com/ptrv) - original creator |
||||
|
||||
[oshybystyi](https://github.com/oshybystyi) - created this README and know how most of code works |
||||
|
||||
This plugin adds some handy aliases for using Mercurial as well as a few |
||||
utility and prompt functions that can be used in a theme. |
||||
|
||||
To use it, add `mercurial` to the plugins array in your zshrc file: |
||||
|
||||
```zsh |
||||
plugins=(... mercurial) |
||||
``` |
||||
|
||||
## Aliases |
||||
|
||||
| Alias | Command | |
||||
|--------|-------------------------------------------------------------------------------------------------------------| |
||||
| `hga` | `hg add` | |
||||
| `hgc` | `hg commit` | |
||||
| `hgca` | `hg commit --amend` | |
||||
| `hgb` | `hg branch` | |
||||
| `hgba` | `hg branches` | |
||||
| `hgbk` | `hg bookmarks` | |
||||
| `hgco` | `hg checkout` | |
||||
| `hgd` | `hg diff` | |
||||
| `hged` | `hg diffmerge` | |
||||
| `hgp` | `hg push` | |
||||
| `hgs` | `hg status` | |
||||
| `hgsl` | `hg log --limit 20 --template "{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n"` | |
||||
| `hgun` | `hg resolve --list` | |
||||
| `hgi` | `hg incoming` | |
||||
| `hgl` | `hg pull -u` | |
||||
| `hglr` | `hg pull --rebase` | |
||||
| `hgo` | `hg outgoing` | |
||||
|
||||
## Prompt usage |
||||
|
||||
- Switch to a theme which uses `hg_prompt_info` |
||||
|
||||
- Or customize the `$PROMPT` variable of your current theme to contain current folder mercurial repo info. |
||||
This can be done by putting a custom version of the theme in `$ZSH_CUSTOM` or by changing `$PROMPT` in |
||||
`.zshrc` after loading the theme. |
||||
|
||||
For example, for the `robbyrussell` theme you need to modify `$PROMPT` var by adding `$(hg_prompt_info)` |
||||
after `$(git_prompt_info)`, so it looks like this: |
||||
|
||||
```zsh |
||||
PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)$(hg_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' |
||||
``` |
||||
|
||||
You can also redefine additional vars used in the plugin (after Oh My Zsh is sourced): |
||||
|
||||
```zsh |
||||
ZSH_THEME_HG_PROMPT_PREFIX="%{$fg_bold[magenta]%}hg:(%{$fg[red]%}" |
||||
ZSH_THEME_HG_PROMPT_SUFFIX="%{$reset_color%}" |
||||
ZSH_THEME_HG_PROMPT_DIRTY="%{$fg[magenta]%}) %{$fg[yellow]%}✗%{$reset_color%}" |
||||
ZSH_THEME_HG_PROMPT_CLEAN="%{$fg[magenta]%})" |
||||
``` |
||||
|
||||
### Display repo branch and directory status in prompt |
||||
|
||||
This is the same as git plugin does. **Note**: additional changes to `.zshrc`, or using a theme designed |
||||
to use `hg_prompt_info`, are required in order for this to work. |
||||
|
||||
## Mantainers |
||||
|
||||
- [ptrv](https://github.com/ptrv): original creator |
||||
- [oshybystyi](https://github.com/oshybystyi) |
||||
|
||||
@ -1,9 +1,15 @@ |
||||
## Perms |
||||
# Perms plugin |
||||
|
||||
Plugin to handle some unix filesystem permissions quickly |
||||
Plugin to handle some unix filesystem permissions quickly. |
||||
|
||||
### Usage |
||||
To use it, add `perms` to the plugins array in your zshrc file: |
||||
|
||||
```zsh |
||||
plugins=(... perms) |
||||
``` |
||||
|
||||
## Usage |
||||
|
||||
* `set755` recursively sets all given directories (default to .) to octal 755. |
||||
* `set644` recursively sets all given files (default to .) to octal 644. |
||||
* `fixperms` is a wrapper around `set755` and `set644` applied to a specified directory or the current directory otherwise. It also prompts prior to execution unlike the other two aliases. |
||||
* `fixperms` is a wrapper around `set755` and `set644` applied to a specified directory or the current directory otherwise. It also prompts prior to execution unlike the other two aliases. |
||||
|
||||
@ -1,7 +1,25 @@ |
||||
## repo |
||||
**Maintainer:** [Stibbons](https://github.com/Stibbons) |
||||
# repo plugin |
||||
|
||||
This plugin mainly add support automatic completion for the repo command line tool: |
||||
https://code.google.com/p/git-repo/ |
||||
This plugin mainly adds some aliases and support for automatic completion for |
||||
the [repo command line tool](https://code.google.com/p/git-repo/). |
||||
|
||||
* `r` aliases `repo` |
||||
To use it, add `repo` to the plugins array in your zshrc file: |
||||
|
||||
```zsh |
||||
plugins=(... repo) |
||||
``` |
||||
|
||||
## Aliases |
||||
|
||||
| Alias | Command | |
||||
|---------|----------------------------------------| |
||||
| `r` | `repo` | |
||||
| `rra` | `repo rebase --auto-stash` | |
||||
| `rs` | `repo sync` | |
||||
| `rsrra` | `repo sync ; repo rebase --auto-stash` | |
||||
| `ru` | `repo upload` | |
||||
| `rst` | `repo status` | |
||||
| `rsto` | `repo status -o` | |
||||
| `rfa` | `repo forall -c` | |
||||
| `rfap` | `repo forall -p -c` | |
||||
| `rinf` | `repo info` | |
||||
|
||||
@ -1,15 +1,16 @@ |
||||
## Scala plugin |
||||
# Scala plugin |
||||
|
||||
Completion script for [scala and scalac](https://www.scala-lang.org/) commands. |
||||
|
||||
To use it, add `scala` to the plugins array of your zshrc file: |
||||
``` |
||||
|
||||
```zsh |
||||
plugins=(... scala) |
||||
``` |
||||
|
||||
## Aliases |
||||
|
||||
| Command | Description | |
||||
|------------------|---------------------------------------------------------------------------------| |
||||
| `scala` | Run code in the Scala language | |
||||
| `scalac` | Compiler for the Scala language | |
||||
| Command | Description | |
||||
|----------|---------------------------------| |
||||
| `scala` | Run code in the Scala language | |
||||
| `scalac` | Compiler for the Scala language | |
||||
|
||||
@ -1,57 +1,50 @@ |
||||
## zeus |
||||
**Maintainer:** [b4mboo](https://github.com/b4mboo) |
||||
|
||||
* `zi` aliases `zeus init` |
||||
* `zinit` aliases `zeus init` |
||||
|
||||
* `zs` aliases `zeus start` |
||||
* `ztart` aliases `zeus start` |
||||
|
||||
* `zc` aliases `zeus console` |
||||
* `zonsole` aliases `zeus console` |
||||
|
||||
* `zsr` aliases `zeus server` |
||||
* `zerver` aliases `zeus server` |
||||
|
||||
* `zr` aliases `zeus rake` |
||||
* `zake` aliases `zeus rake` |
||||
|
||||
* `zg` aliases `zeus generate` |
||||
* `zenerate` aliases `zeus generate` |
||||
|
||||
* `zrn` aliases `zeus runner` |
||||
* `zunner` aliases `zeus runner` |
||||
|
||||
* `zcu` aliases `zeus cucumber` |
||||
* `zucumber` aliases `zeus cucumber` |
||||
* `zwip` aliases `zeus cucumber --profile wip` |
||||
|
||||
* `zspec` aliases `zeus rspec` |
||||
|
||||
* `zt` aliases `zeus test` |
||||
* `zest` aliases `zeus test` |
||||
|
||||
* `zu` aliases `zeus test test/unit/*` |
||||
* `zunits` aliases `zeus test test/unit/*` |
||||
|
||||
* `zf` aliases `zeus test test/functional/*` |
||||
* `zunctional` aliases `zeus test test/functional/*` |
||||
|
||||
* `za` aliases `zeus test test/unit/*; zeus test test/functional/; zeus cucumber` |
||||
* `zall` aliases `zeus test test/unit/*; zeus test test/functional/; zeus cucumber` |
||||
|
||||
* `zsw` aliases `rm .zeus.sock` |
||||
* `zweep` aliases `rm .zeus.sock` |
||||
|
||||
* `zdbr` aliases `zeus rake db:reset db:test:prepare` |
||||
* `zdbreset` aliases `zeus rake db:reset db:test:prepare` |
||||
|
||||
* `zdbm` aliases `zeus rake db:migrate db:test:prepare` |
||||
* `zdbmigrate` aliases `zeus rake 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)`) |
||||
# zeus plugin |
||||
|
||||
[Zeus](https://github.com/burke/zeus) preloads your Rails environment and forks that |
||||
process whenever needed. This effectively speeds up Rails' boot process to under 1 sec. |
||||
This plugin adds autocompletion for zeus and aliases for common usage. |
||||
|
||||
To use it, add `zeus` to the plugins array in your zshrc file: |
||||
|
||||
```zsh |
||||
plugins=(... zeus) |
||||
``` |
||||
|
||||
You also need to have the `zeus` gem installed. |
||||
|
||||
| Alias | Command | |
||||
|:-------------|:-------------------------------------------------------------------| |
||||
| _zi_ | `zeus init` | |
||||
| _zinit_ | `zeus init` | |
||||
| _zs_ | `zeus start` | |
||||
| _ztart_ | `zeus start` | |
||||
| _zc_ | `zeus console` | |
||||
| _zonsole_ | `zeus console` | |
||||
| _zsr_ | `zeus server` | |
||||
| _zerver_ | `zeus server` | |
||||
| _zr_ | `noglob zeus rake` | |
||||
| _zake_ | `noglob zeus rake` | |
||||
| _zg_ | `zeus generate` | |
||||
| _zenerate_ | `zeus generate` | |
||||
| _zrn_ | `zeus runner` | |
||||
| _zunner_ | `zeus runner` | |
||||
| _zcu_ | `zeus cucumber` | |
||||
| _zucumber_ | `zeus cucumber` | |
||||
| _zwip_ | `zeus cucumber --profile wip` | |
||||
| _zspec_ | `zeus rspec` | |
||||
| _zt_ | `zeus test` | |
||||
| _zest_ | `zeus test` | |
||||
| _zu_ | `zeus test test/unit/*` | |
||||
| _zunits_ | `zeus test test/unit/*` | |
||||
| _zf_ | `zeus test test/functional/*` | |
||||
| _zunctional_ | `zeus test test/functional/*` | |
||||
| _za_ | `zeus test test/unit/*; zeus test test/functional/; zeus cucumber` | |
||||
| _zall_ | `zeus test test/unit/*; zeus test test/functional/; zeus cucumber` | |
||||
| _zsw_ | `rm .zeus.sock` | |
||||
| _zweep_ | `rm .zeus.sock` | |
||||
| _zdbr_ | `zeus rake db:reset db:test:prepare` | |
||||
| _zdbreset_ | `zeus rake db:reset db:test:prepare` | |
||||
| _zdbm_ | `zeus rake db:migrate db:test:prepare` | |
||||
| _zdbmigrate_ | `zeus rake db:migrate db:test:prepare` | |
||||
| _zdbc_ | `zeus rake db:create` | |
||||
| _zdbcm_ | `zeus rake db:create db:migrate db:test:prepare` | |
||||
|
||||
Loading…
Reference in new issue