Merge branch 'master' into master
This commit is contained in:
commit
ed401bc55a
53 changed files with 1177 additions and 106 deletions
8
plugins/autopep8/README.md
Normal file
8
plugins/autopep8/README.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# autopep8 plugin
|
||||
|
||||
This plugin adds completion for [autopep8](https://pypi.org/project/autopep8/), a tool that automatically formats Python code to conform to the [PEP 8](http://www.python.org/dev/peps/pep-0008/) style guide.
|
||||
|
||||
To use it, add autopep8 to the plugins array of your zshrc file:
|
||||
```
|
||||
plugins=(... autopep8)
|
||||
```
|
||||
18
plugins/bower/README.md
Normal file
18
plugins/bower/README.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Bower plugin
|
||||
|
||||
This plugin adds completion for [Bower](https://bower.io/) and a few useful aliases for common Bower commands.
|
||||
|
||||
To use it, add `bower` to the plugins array in your zshrc file:
|
||||
|
||||
```
|
||||
plugins=(... bower)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
|
||||
| Alias | Command | Description |
|
||||
|-------|-----------------|--------------------------------------------------------|
|
||||
| bi | `bower install` | Installs the project dependencies listed in bower.json |
|
||||
| bl | `bower list` | List local packages and possible updates |
|
||||
| bs | `bower search` | Finds all packages or a specific package. |
|
||||
|
||||
35
plugins/catimg/README.md
Normal file
35
plugins/catimg/README.md
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# catimg
|
||||
|
||||
Plugin for displaying images on the terminal using the the `catimg.sh` script provided by [posva](https://github.com/posva/catimg)
|
||||
|
||||
## Requirements
|
||||
|
||||
- `convert` (ImageMagick)
|
||||
|
||||
## Enabling the plugin
|
||||
|
||||
1. Open your `.zshrc` file and add `catimg` in the plugins section:
|
||||
|
||||
```zsh
|
||||
plugins=(
|
||||
# all your enabled plugins
|
||||
catimg
|
||||
)
|
||||
```
|
||||
|
||||
2. Reload the source file or restart your Terminal session:
|
||||
|
||||
```console
|
||||
$ source ~/.zshrc
|
||||
$
|
||||
```
|
||||
|
||||
## Functions
|
||||
|
||||
| Function | Description |
|
||||
| -------- | ---------------------------------------- |
|
||||
| `catimg` | Displays the given image on the terminal |
|
||||
|
||||
## Usage examples
|
||||
|
||||
[](https://asciinema.org/a/204702)
|
||||
78
plugins/dircycle/README.md
Normal file
78
plugins/dircycle/README.md
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
# dircycle
|
||||
|
||||
Plugin for cycling through the directory stack
|
||||
|
||||
This plugin enables directory navigation similar to using back and forward on browsers or common file explorers like Finder or Nautilus. It uses a small zle trick that lets you cycle through your directory stack left or right using <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Left</kbd> / <kbd>Right</kbd> . This is useful when moving back and forth between directories in development environments, and can be thought of as kind of a nondestructive pushd/popd.
|
||||
|
||||
## Enabling the plugin
|
||||
|
||||
1. Open your `.zshrc` file and add `dircycle` in the plugins section:
|
||||
|
||||
```zsh
|
||||
plugins=(
|
||||
# all your enabled plugins
|
||||
dircycle
|
||||
)
|
||||
```
|
||||
|
||||
2. Reload the source file or restart your Terminal session:
|
||||
|
||||
```console
|
||||
$ source ~/.zshrc
|
||||
$
|
||||
```
|
||||
|
||||
## Usage Examples
|
||||
|
||||
Say you opened these directories on the terminal:
|
||||
|
||||
```console
|
||||
~$ cd Projects
|
||||
~/Projects$ cd Hacktoberfest
|
||||
~/Projects/Hacktoberfest$ cd oh-my-zsh
|
||||
~/Projects/Hacktoberfest/oh-my-zsh$ dirs -v
|
||||
0 ~/Projects/Hacktoberfest/oh-my-zsh
|
||||
1 ~/Projects/Hacktoberfest
|
||||
2 ~/Projects
|
||||
3 ~
|
||||
```
|
||||
|
||||
By pressing <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Left</kbd>, the current working directory or `$CWD` will be from `oh-my-zsh` to `Hacktoberfest`. Press it again and it will be at `Projects`.
|
||||
|
||||
And by pressing <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Right</kbd>, the `$CWD` will be from `Projects` to `Hacktoberfest`. Press it again and it will be at `oh-my-zsh`.
|
||||
|
||||
Here's a example history table with the same accessed directories like above:
|
||||
|
||||
| Current `$CWD` | Key press | New `$CWD` |
|
||||
| --------------- | ----------------------------------------------------- | --------------- |
|
||||
| `oh-my-zsh` | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Left</kbd> | `Hacktoberfest` |
|
||||
| `Hacktoberfest` | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Left</kbd> | `Projects` |
|
||||
| `Projects` | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Left</kbd> | `~` |
|
||||
| `~` | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Right</kbd> | `Projects` |
|
||||
| `Projects` | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Right</kbd> | `Hacktoberfest` |
|
||||
| `Hacktoberfest` | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Right</kbd> | `oh-my-zsh` |
|
||||
| `oh-my-zsh` | <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Right</kbd> | `~` |
|
||||
|
||||
Note the last traversal, when pressing <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Right</kbd> on a last known `$CWD`, it will change back to the first known `$CWD`, which in the example is `~`.
|
||||
|
||||
Here's an asciinema cast demonstrating the example above:
|
||||
|
||||
[](https://asciinema.org/a/204406)
|
||||
|
||||
## Functions
|
||||
|
||||
| Function | Description |
|
||||
| -------------------- | --------------------------------------------------------------------------------------------------------- |
|
||||
| `insert-cycledleft` | Change `$CWD` to the previous known stack, binded on <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Left</kbd> |
|
||||
| `insert-cycledright` | Change `$CWD` to the next known stack, binded on <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Right</kbd> |
|
||||
|
||||
## Rebinding keys
|
||||
|
||||
You can bind these functions to other key sequences, as long as you know the bindkey sequence. For example, these commands bind to <kbd>Alt</kbd> + <kbd>Shift</kbd> + <kbd>Left</kbd> / <kbd>Right</kbd> in `xterm-256color`:
|
||||
|
||||
```zsh
|
||||
bindkey '^[[1;4D' insert-cycledleft
|
||||
bindkey '^[[1;4C' insert-cycledright
|
||||
```
|
||||
|
||||
You can get the bindkey sequence by pressing <kbd>Ctrl</kbd> + <kbd>V</kbd>, then pressing the keyboard shortcut you want to use.
|
||||
17
plugins/dirhistory/README.md
Normal file
17
plugins/dirhistory/README.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Dirhistory plugin
|
||||
|
||||
This plugin adds keyboard shortcuts for navigating directory history and hierarchy.
|
||||
|
||||
To use it, add `dirhistory` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... dirhistory)
|
||||
```
|
||||
## Keyboard Shortcuts
|
||||
|
||||
| Shortcut | Description |
|
||||
|-----------------------------------|-----------------------------------------------------------|
|
||||
| <kbd>alt</kbd> + <kbd>left</kbd> | Go to previous directory |
|
||||
| <kbd>alt</kbd> + <kbd>right</kbd> | Undo <kbd>alt</kbd> + <kbd>left</kbd> |
|
||||
| <kbd>alt</kbd> + <kbd>up</kbd> | Move into the parent directory |
|
||||
| <kbd>alt</kbd> + <kbd>down</kbd> | Move into the first child directory by alphabetical order |
|
||||
|
|
@ -1,4 +1,29 @@
|
|||
# Docker-compose plugin for oh my zsh
|
||||
# Docker-compose
|
||||
|
||||
A copy of the completion script from the [docker-compose](https://github.com/docker/compose/blob/master/contrib/completion/zsh/_docker-compose) git repo.
|
||||
This plugin provides completion for [docker-compose](https://docs.docker.com/compose/) as well as some
|
||||
aliases for frequent docker-compose commands.
|
||||
|
||||
To use it, add docker-compose to the plugins array of your zshrc file:
|
||||
```
|
||||
plugins=(... docker-compose)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
|
||||
| Alias | Command | Description |
|
||||
|-----------|--------------------------|------------------------------------------------------------------|
|
||||
| dco | `docker-compose` | Docker-compose main command |
|
||||
| dcb | `docker-compose build` | Build containers |
|
||||
| dce | `docker-compose exec` | Execute command inside a container |
|
||||
| dcps | `docker-compose ps` | List containers |
|
||||
| dcrestart | `docker-compose restart` | Restart container |
|
||||
| dcrm | `docker-compose rm` | Remove container |
|
||||
| dcr | `docker-compose run` | Run a command in container |
|
||||
| dcstop | `docker-compose stop` | Stop a container |
|
||||
| dcup | `docker-compose up` | Build, (re)create, start, and attach to containers for a service |
|
||||
| dcupd | `docker-compose up -d` | Same as `dcup`, but starts as daemon |
|
||||
| dcdn | `docker-compose down` | Stop and remove containers |
|
||||
| dcl | `docker-compose logs` | Show logs of container |
|
||||
| dclf | `docker-compose logs -f` | Show logs and follow output |
|
||||
| dcpull | `docker-compose pull` | Pull image of a service |
|
||||
| dcstart | `docker-compose start` | Start a container |
|
||||
|
|
|
|||
30
plugins/emacs/README.md
Normal file
30
plugins/emacs/README.md
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Emacs plugin
|
||||
|
||||
This plugin utilizes the Emacs daemon capability, allowing the user to quickly open frames, whether they are opened in a terminal via a ssh connection, or X frames opened on the same host. The plugin also provides some aliases for such operations.
|
||||
|
||||
- You don't have the cost of starting Emacs all the time anymore
|
||||
- Opening a file is as fast as Emacs does not have anything else to do.
|
||||
- You can share opened buffered across opened frames.
|
||||
- Configuration changes made at runtime are applied to all frames.
|
||||
|
||||
**NOTE:** requires Emacs 24 and newer.
|
||||
|
||||
To use it, add emacs to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... emacs)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
|
||||
The plugin uses a custom launcher (which we'll call here `$EMACS_LAUNCHER`) that is just a wrapper around [`emacsclient`](https://www.emacswiki.org/emacs/EmacsClient).
|
||||
|
||||
| Alias | Command | Description |
|
||||
|--------|----------------------------------------------------|----------------------------------------------------------------|
|
||||
| emacs | `$EMACS_LAUNCHER --no-wait` | Opens a temporary emacsclient frame |
|
||||
| e | `emacs` | Same as emacs alias |
|
||||
| te | `$EMACS_LAUNCHER -nw` | Open terminal emacsclient |
|
||||
| eeval | `$EMACS_LAUNCHER --eval` | Same as `M-x eval` but from outside Emacs |
|
||||
| eframe | `emacsclient --alternate-editor "" --create-frame` | Create new X frame |
|
||||
| efile | - | Print the path to the file open in the current buffer |
|
||||
| ecd | - | Print the directory of the file open in the the current buffer |
|
||||
14
plugins/emoji-clock/README.md
Normal file
14
plugins/emoji-clock/README.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# emoji-clock
|
||||
|
||||
The plugin displays current time as an emoji symbol with half hour accuracy.
|
||||
|
||||
To use it, add `emoji-clock` to the plugins array of your zshrc file:
|
||||
```
|
||||
plugins=(... emoji-clock)
|
||||
```
|
||||
|
||||
## Features
|
||||
|
||||
| Function | Description |
|
||||
|-------------------|----------------------------------------------------------------------|
|
||||
| `emoji-clock` | Displays current time in clock emoji symbol with half hour accuracy |
|
||||
69
plugins/encode64/README.md
Normal file
69
plugins/encode64/README.md
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
# encode64
|
||||
|
||||
Alias plugin for encoding or decoding using `base64` command
|
||||
|
||||
## Functions and Aliases
|
||||
|
||||
| Function | Alias | Description |
|
||||
| ---------- | ----- | ------------------------------ |
|
||||
| `encode64` | `e64` | Encodes given data to base64 |
|
||||
| `decode64` | `d64` | Decodes given data from base64 |
|
||||
|
||||
## Enabling plugin
|
||||
|
||||
1. Edit your `.zshrc` file and add `encode64` to the list of plugins:
|
||||
|
||||
```sh
|
||||
plugins=(
|
||||
# ...other enabled plugins
|
||||
encode64
|
||||
)
|
||||
```
|
||||
|
||||
2. Restart your terminal session or reload configuration by running:
|
||||
|
||||
```sh
|
||||
source ~/.zshrc
|
||||
```
|
||||
|
||||
## Usage and examples
|
||||
|
||||
### Encoding
|
||||
|
||||
- From parameter
|
||||
|
||||
```console
|
||||
$ encode64 "oh-my-zsh"
|
||||
b2gtbXktenNo
|
||||
$ e64 "oh-my-zsh"
|
||||
b2gtbXktenNo
|
||||
```
|
||||
|
||||
- From piping
|
||||
|
||||
```console
|
||||
$ echo "oh-my-zsh" | encode64
|
||||
b2gtbXktenNo==
|
||||
$ echo "oh-my-zsh" | e64
|
||||
b2gtbXktenNo==
|
||||
```
|
||||
|
||||
### Decoding
|
||||
|
||||
- From parameter
|
||||
|
||||
```console
|
||||
$ decode64 b2gtbXktenNo
|
||||
oh-my-zsh%
|
||||
$ d64 b2gtbXktenNo
|
||||
oh-my-zsh%
|
||||
```
|
||||
|
||||
- From piping
|
||||
|
||||
```console
|
||||
$ echo "b2gtbXktenNoCg==" | decode64
|
||||
oh-my-zsh
|
||||
$ echo "b2gtbXktenNoCg==" | decode64
|
||||
oh-my-zsh
|
||||
```
|
||||
17
plugins/gem/README.md
Normal file
17
plugins/gem/README.md
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Gem plugin
|
||||
|
||||
This plugin adds completions and aliases for [Gem](https://rubygems.org/). The completions include the common `gem` subcommands as well as the installed gems in the current directory.
|
||||
|
||||
To use it, add `gem` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... gem)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
|
||||
| Alias | Command | Description |
|
||||
|----------------------|-------------------------------|--------------------------------------------|
|
||||
| gemb | `gem build *.gemspec` | Build a gem from a gemspec |
|
||||
| gemp | `gem push *.gem` | Push a gem up to the gem server |
|
||||
| gemy [gem] [version] | `gem yank [gem] -v [version]` | Remove a pushed gem version from the index |
|
||||
138
plugins/gitfast/README.md
Normal file
138
plugins/gitfast/README.md
Normal file
|
|
@ -0,0 +1,138 @@
|
|||
# Gitfast plugin
|
||||
|
||||
This plugin adds completion for Git, using the zsh completion from git.git folks, which is much faster than the official one from zsh. A lot of zsh-specific features are not supported, like descriptions for every argument, but everything the bash completion has, this one does too (as it is using it behind the scenes). Not only is it faster, it should be more robust, and updated regularly to the latest git upstream version..
|
||||
|
||||
To use it, add `gitfast` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... gitfast)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
|
||||
| Alias | Command |
|
||||
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| g | `git` |
|
||||
| ga | `git add` |
|
||||
| gaa | `git add --all` |
|
||||
| gapa | `git add --patch` |
|
||||
| gau | `git add --update` |
|
||||
| gb | `git branch` |
|
||||
| gba | `git branch -a` |
|
||||
| gbd | `git branch -d` |
|
||||
| gbda | `git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d` |
|
||||
| gbl | `git blame -b -w` |
|
||||
| gbnm | `git branch --no-merged` |
|
||||
| gbr | `git branch --remote` |
|
||||
| gbs | `git bisect` |
|
||||
| gbsb | `git bisect bad` |
|
||||
| gbsg | `git bisect good` |
|
||||
| gbsr | `git bisect reset` |
|
||||
| gbss | `git bisect start` |
|
||||
| gc | `git commit -v` |
|
||||
| gc! | `git commit -v --amend` |
|
||||
| gca | `git commit -v -a` |
|
||||
| gca! | `git commit -v -a --amend` |
|
||||
| gcam | `git commit -a -m` |
|
||||
| gcan! | `git commit -v -a --no-edit --amend` |
|
||||
| gcans! | `git commit -v -a -s --no-edit --amend` |
|
||||
| gcb | `git checkout -b` |
|
||||
| gcd | `git checkout develop` |
|
||||
| gcf | `git config --list` |
|
||||
| gcl | `git clone --recursive` |
|
||||
| gclean | `git clean -fd` |
|
||||
| gcm | `git checkout master` |
|
||||
| gcmsg | `git commit -m` |
|
||||
| gcn! | `git commit -v --no-edit --amend` |
|
||||
| gco | `git checkout` |
|
||||
| gcount | `git shortlog -sn` |
|
||||
| gcp | `git cherry-pick` |
|
||||
| gcpa | `git cherry-pick --abort` |
|
||||
| gcpc | `git cherry-pick --continue` |
|
||||
| gcs | `git commit -S` |
|
||||
| gcsm | `git commit -s -m` |
|
||||
| gd | `git diff` |
|
||||
| gdca | `git diff --cached` |
|
||||
| gdct | `` git describe --tags `git rev-list --tags --max-count=1` `` |
|
||||
| gdt | `git diff-tree --no-commit-id --name-only -r` |
|
||||
| gdw | `git diff --word-diff` |
|
||||
| gf | `git fetch` |
|
||||
| gfa | `git fetch --all --prune` |
|
||||
| gfo | `git fetch origin` |
|
||||
| gg | `git gui citool` |
|
||||
| gga | `git gui citool --amend` |
|
||||
| ggpull | `git pull origin $(git_current_branch)` |
|
||||
| ggpur | `ggu` |
|
||||
| ggpush | `git push origin $(git_current_branch)` |
|
||||
| ggsup | `git branch --set-upstream-to=origin/$(git_current_branch)` |
|
||||
| ghh | `git help` |
|
||||
| gignore | `git update-index --assume-unchanged` |
|
||||
| gignored | `git ls-files -v | grep "^[[:lower:]]"` |
|
||||
| git-svn-dcommit-push | `git svn dcommit && git push github master:svntrunk` |
|
||||
| gk | `\gitk --all --branches` |
|
||||
| gke | `\gitk --all $(git log -g --pretty=%h)` |
|
||||
| gl | `git pull` |
|
||||
| glg | `git log --stat` |
|
||||
| glgg | `git log --graph` |
|
||||
| glgga | `git log --graph --decorate --all` |
|
||||
| glgm | `git log --graph --max-count=10` |
|
||||
| glgp | `git log --stat -p` |
|
||||
| glo | `git log --oneline --decorate` |
|
||||
| glog | `git log --oneline --decorate --graph` |
|
||||
| gloga | `git log --oneline --decorate --graph --all` |
|
||||
| glol | `git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit` |
|
||||
| glola | `git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --all` |
|
||||
| glp | `_git_log_prettily` |
|
||||
| glum | `git pull upstream master` |
|
||||
| gm | `git merge` |
|
||||
| gmom | `git merge origin/master` |
|
||||
| gmt | `git mergetool --no-prompt` |
|
||||
| gmtvim | `git mergetool --no-prompt --tool=vimdiff` |
|
||||
| gmum | `git merge upstream/master` |
|
||||
| gp | `git push` |
|
||||
| gpd | `git push --dry-run` |
|
||||
| gpoat | `git push origin --all && git push origin --tags` |
|
||||
| gpristine | `git reset --hard && git clean -dfx` |
|
||||
| gpsup | `git push --set-upstream origin $(git_current_branch)` |
|
||||
| gpu | `git push upstream` |
|
||||
| gpv | `git push -v` |
|
||||
| gr | `git remote` |
|
||||
| gra | `git remote add` |
|
||||
| grb | `git rebase` |
|
||||
| grba | `git rebase --abort` |
|
||||
| grbc | `git rebase --continue` |
|
||||
| grbi | `git rebase -i` |
|
||||
| grbm | `git rebase master` |
|
||||
| grbs | `git rebase --skip` |
|
||||
| grh | `git reset HEAD` |
|
||||
| grhh | `git reset HEAD --hard` |
|
||||
| grmv | `git remote rename` |
|
||||
| grrm | `git remote remove` |
|
||||
| grset | `git remote set-url` |
|
||||
| grt | `cd $(git rev-parse --show-toplevel || echo ".")` |
|
||||
| gru | `git reset --` |
|
||||
| grup | `git remote update` |
|
||||
| grv | `git remote -v` |
|
||||
| gsb | `git status -sb` |
|
||||
| gsd | `git svn dcommit` |
|
||||
| gsi | `git submodule init` |
|
||||
| gsps | `git show --pretty=short --show-signature` |
|
||||
| gsr | `git svn rebase` |
|
||||
| gss | `git status -s` |
|
||||
| gst | `git status` |
|
||||
| gsta | `git stash save` |
|
||||
| gstaa | `git stash apply` |
|
||||
| gstc | `git stash clear` |
|
||||
| gstd | `git stash drop` |
|
||||
| gstl | `git stash list` |
|
||||
| gstp | `git stash pop` |
|
||||
| gsts | `git stash show --text` |
|
||||
| gsu | `git submodule update` |
|
||||
| gts | `git tag -s` |
|
||||
| gtv | `git tag | sort -V` |
|
||||
| gunignore | `git update-index --no-assume-unchanged` |
|
||||
| gunwip | `git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1` |
|
||||
| gup | `git pull --rebase` |
|
||||
| gupv | `git pull --rebase -v` |
|
||||
| gwch | `git whatchanged -p --abbrev-commit --pretty=medium` |
|
||||
| gwip | `git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify -m "--wip-- [skip ci]"` |
|
||||
1
plugins/go/README.md
Normal file
1
plugins/go/README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
The go plugin is deprecated. Use the [golang plugin](https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/golang) instead.
|
||||
29
plugins/golang/README.md
Normal file
29
plugins/golang/README.md
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Golang plugin
|
||||
|
||||
This plugin adds completion for the [Go Programming Language](https://golang.org/),
|
||||
as well as some aliases for common Golang commands.
|
||||
|
||||
To use it, add `golang` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... golang)
|
||||
```
|
||||
|
||||
## Aliases
|
||||
|
||||
| Alias | Command | Description |
|
||||
| ------- | ----------------------- | ------------------------------------------------------------- |
|
||||
| gob | `go build` | Build your code |
|
||||
| goc | `go clean` | Removes object files from package source directories |
|
||||
| god | `go doc` | Prints documentation comments |
|
||||
| gof | `go fmt` | Gofmt formats (aligns and indents) Go programs. |
|
||||
| gofa | `go fmt ./...` | Run go fmt for all packages in current directory, recursively |
|
||||
| gog | `go get` | Downloads packages and then installs them to $GOPATH |
|
||||
| goi | `go install` | Compiles and installs packages to $GOPATH |
|
||||
| gol | `go list` | Lists Go packages |
|
||||
| gop | `cd $GOPATH` | Takes you to $GOPATH |
|
||||
| gopb | `cd $GOPATH/bin` | Takes you to $GOPATH/bin |
|
||||
| gops | `cd $GOPATH/src` | Takes you to $GOPATH/src |
|
||||
| gor | `go run` | Compiles and runs your code |
|
||||
| got | `go test` | Runs tests |
|
||||
| gov | `go vet` | Vet examines Go source code and reports suspicious constructs |
|
||||
23
plugins/gradle/README.md
Normal file
23
plugins/gradle/README.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
## Gradle Plugin
|
||||
|
||||
This plugin adds completions and aliases for [Gradle](https://gradle.org/).
|
||||
|
||||
To use it, add `gradle` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... gradle)
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
This plugin creates an alias `gradle` which is used to determine whether the current working directory has a gradlew file. If gradlew is present it will be used otherwise `gradle` is used directly. Gradle tasks can be executed directly without regard for whether it is `gradle` or `gradlew`
|
||||
|
||||
Examples:
|
||||
```zsh
|
||||
gradle test
|
||||
gradle build
|
||||
```
|
||||
|
||||
## Completion
|
||||
|
||||
The completion provided for this plugin caches the parsed tasks into a file named `.gradletasknamecache` in the current working directory, so you might want to add that to your `.gitignore` file so that it's not accidentally committed.
|
||||
37
plugins/grunt/README.md
Normal file
37
plugins/grunt/README.md
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# grunt plugin
|
||||
|
||||
This plugin adds completions for [grunt](https://github.com/gruntjs/grunt).
|
||||
|
||||
To use it, add `grunt` to the plugins array of your `.zshrc` file:
|
||||
```zsh
|
||||
plugins=(... grunt)
|
||||
```
|
||||
|
||||
## Enable caching
|
||||
|
||||
If you want to use the cache, set the following in your `.zshrc`:
|
||||
```zsh
|
||||
zstyle ':completion:*' use-cache yes
|
||||
```
|
||||
|
||||
## Settings
|
||||
|
||||
* Show grunt file path:
|
||||
```zsh
|
||||
zstyle ':completion::complete:grunt::options:' show_grunt_path yes
|
||||
```
|
||||
* Cache expiration days (default: 7):
|
||||
```zsh
|
||||
zstyle ':completion::complete:grunt::options:' expire 1
|
||||
```
|
||||
* Not update options cache if target gruntfile is changed.
|
||||
```zsh
|
||||
zstyle ':completion::complete:grunt::options:' no_update_options yes
|
||||
```
|
||||
|
||||
Note that if you change the zstyle settings, you should delete the cache file and restart zsh.
|
||||
|
||||
```zsh
|
||||
$ rm ~/.zcompcache/grunt
|
||||
$ exec zsh
|
||||
```
|
||||
8
plugins/gulp/README.md
Normal file
8
plugins/gulp/README.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# gulp plugin
|
||||
|
||||
This plugin adds autocompletion for your [`gulp`](https://gulpjs.com/) tasks. It grabs all available tasks from the `gulpfile.js` in the current directory.
|
||||
|
||||
To use it, add `gulp` to the plugins array of your `.zshrc` file:
|
||||
```
|
||||
plugins=(... gulp)
|
||||
```
|
||||
29
plugins/iterm2/README.md
Normal file
29
plugins/iterm2/README.md
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# iTerm2 plugin
|
||||
|
||||
This plugin adds a few functions that are useful when using [iTerm2](https://www.iterm2.com/).
|
||||
|
||||
To use it, add _iterm2_ to the plugins array of your zshrc file:
|
||||
```
|
||||
plugins=(... iterm2)
|
||||
```
|
||||
|
||||
## Plugin commands
|
||||
|
||||
* `_iterm2_command <iterm2-command>`
|
||||
executes an arbitrary iTerm2 command via an escape code sequence.
|
||||
See https://iterm2.com/documentation-escape-codes.html for all supported commands.
|
||||
|
||||
* `iterm2_profile <profile-name>`
|
||||
changes the current terminal window's profile (colors, fonts, settings, etc).
|
||||
`profile-name` is the name of another iTerm2 profile. The profile name can contain spaces.
|
||||
|
||||
* `iterm2_tab_color <red> <green> <blue>`
|
||||
changes the color of iTerm2's currently active tab.
|
||||
`red`/`green`/`blue` are on the range 0-255.
|
||||
|
||||
* `iterm2_tab_color_reset`
|
||||
resets the color of iTerm2's current tab back to default.
|
||||
|
||||
## Contributors
|
||||
|
||||
- [Aviv Rosenberg](https://github.com/avivrosenberg)
|
||||
19
plugins/jump/README.md
Normal file
19
plugins/jump/README.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Jump plugin
|
||||
|
||||
This plugin allows to easily jump around the file system by manually adding marks.
|
||||
Those marks are stored as symbolic links in the directory `$MARKPATH` (default `$HOME/.marks`)
|
||||
|
||||
To use it, add `jump` to the plugins array in your zshrc file:
|
||||
|
||||
```zsh
|
||||
plugins=(... jump)
|
||||
```
|
||||
|
||||
## Commands
|
||||
|
||||
| Command | Description |
|
||||
|----------------------|-------------------------------------------------------------------------------------------------|
|
||||
| `jump <mark-name>` | Jump to the given mark |
|
||||
| `mark [mark-name]` | Create a mark with the given name or with the name of the current directory if none is provided |
|
||||
| `unmark <mark-name>` | Remove the given mark |
|
||||
| `marks` | List the existing marks and the directories they point to |
|
||||
|
|
@ -19,7 +19,7 @@ mark() {
|
|||
MARK="$1"
|
||||
fi
|
||||
if read -q \?"Mark $PWD as ${MARK}? (y/n) "; then
|
||||
mkdir -p "$MARKPATH"; ln -s "$PWD" "$MARKPATH/$MARK"
|
||||
mkdir -p "$MARKPATH"; ln -sfn "$PWD" "$MARKPATH/$MARK"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue