forked from ohmyzsh/ohmyzsh
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
* 'master' of https://github.com/robbyrussell/oh-my-zsh: (71 commits) added assembly alias (ohmyzsh#5107) Fix styling in cakephp3 completion Better cake3 completion Change vim command to $EDITOR for consistency (ohmyzsh#5063) fixed bower completion error from issue ohmyzsh#2694 (ohmyzsh#5056) vagrant snapshot (ohmyzsh#5032) Arcanist plugin (ohmyzsh#5106) completion: zsh: improve main function selection gitfast: fix the prompt colour gitfast: update to upstream v2.8 Add alias for oneline git tree with --all option gitfast: update to upstream v2.4 gitfast: update to upstream v2.0 znt: update to v2.1.15 Add rbenv support for ruby version display Fix deprecated usage (ohmyzsh#5050) Add 'gcn!' for the '--no-edit' option. (ohmyzsh#4830) Add mvn options to ignore test failures (ohmyzsh#5092) Add README to meteor plugin Add meteor plugin aliases ...
- Loading branch information
Showing
74 changed files
with
2,092 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
locals.zsh | ||
log/.zsh_history | ||
projects.zsh | ||
custom | ||
# custom files | ||
custom/ | ||
!custom/plugins/example | ||
!custom/example.zsh | ||
*.swp | ||
!custom/example.zshcache | ||
|
||
# temp files directories | ||
cache/ | ||
log/ |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# Add yourself some shortcuts to projects you often work on | ||
# Example: | ||
# You can put files here to add functionality separated per file, which | ||
# will be ignored by git. | ||
# Files on the custom/ directory will be automatically loaded by the init | ||
# script, in alphabetical order. | ||
|
||
# For example: add yourself some shortcuts to projects you often work on. | ||
# | ||
# brainstormr=~/Projects/development/planetargon/brainstormr | ||
# cd $brainstormr | ||
# | ||
# brainstormr=/Users/robbyrussell/Projects/development/planetargon/brainstormr | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## arcanist | ||
|
||
**Maintainer:** [@emzar](https://github.com/emzar) | ||
|
||
This plugin adds many useful aliases. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# Aliases | ||
# (sorted alphabetically) | ||
# | ||
|
||
alias ara='arc amend' | ||
alias arb='arc branch' | ||
alias arc='arc cover' | ||
alias arci='arc commit' | ||
|
||
alias ard='arc diff' | ||
alias ardnu='arc diff --nounit' | ||
alias ardnupc='arc diff --nounit --plan-changes' | ||
alias ardpc='arc diff --plan-changes' | ||
|
||
alias are='arc export' | ||
alias arh='arc help' | ||
alias arl='arc land' | ||
alias arli='arc lint' | ||
alias arls='arc list' | ||
alias arp='arc patch' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## asdf | ||
|
||
**Maintainer:** [@RobLoach](https://github.com/RobLoach) | ||
|
||
Adds integration with [asdf](https://github.com/asdf-vm/asdf), the extendable version manager, with support for Ruby, Node.js, Elixir, Erlang and more. | ||
|
||
### Installation | ||
|
||
1. Enable the plugin by adding it to your `plugins` definition in `~/.zshrc`. | ||
|
||
``` | ||
plugins=(asdf) | ||
``` | ||
|
||
2. [Install asdf](https://github.com/asdf-vm/asdf#setup) by running the following: | ||
``` | ||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf | ||
``` | ||
|
||
### Usage | ||
|
||
See the [asdf usage documentation](https://github.com/asdf-vm/asdf#usage) for information on how to use asdf: | ||
|
||
``` | ||
asdf plugin-add nodejs git@github.com:asdf-vm/asdf-nodejs.git | ||
asdf install nodejs 5.9.1 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Find where asdf should be installed. | ||
ASDF_DIR="${ASDF_DIR:-$HOME/.asdf}" | ||
|
||
# Load asdf, if found. | ||
if [ -f $ASDF_DIR/asdf.sh ]; then | ||
. $ASDF_DIR/asdf.sh | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,7 @@ _bower () | |
compadd "$@" $(echo $bower_package_list) | ||
;; | ||
*) | ||
_arguments \ | ||
$_no_color \ | ||
;; | ||
esac | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Fossil Plugin | ||
|
||
This plugin adds completion support and prompt for fossil repositories. | ||
The prompt will display the current branch and status been dirty or clean. | ||
|
||
### CONTRIBUTOR | ||
- Jefferson González ([jgmdev](https://github.com/jgmdev)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
_FOSSIL_PROMPT="" | ||
|
||
# Prefix at the very beginning of the prompt, before the branch name | ||
ZSH_THEME_FOSSIL_PROMPT_PREFIX="%{$fg_bold[blue]%}fossil:(%{$fg_bold[red]%}" | ||
|
||
# At the very end of the prompt | ||
ZSH_THEME_FOSSIL_PROMPT_SUFFIX="%{$fg_bold[blue]%})" | ||
|
||
# Text to display if the branch is dirty | ||
ZSH_THEME_FOSSIL_PROMPT_DIRTY=" %{$fg_bold[red]%}✖" | ||
|
||
# Text to display if the branch is clean | ||
ZSH_THEME_FOSSIL_PROMPT_CLEAN=" %{$fg_bold[green]%}✔" | ||
|
||
function fossil_prompt_info () { | ||
local _OUTPUT=`fossil branch 2>&1` | ||
local _STATUS=`echo $_OUTPUT | grep "use --repo"` | ||
if [ "$_STATUS" = "" ]; then | ||
local _EDITED=`fossil changes` | ||
local _EDITED_SYM="$ZSH_THEME_FOSSIL_PROMPT_CLEAN" | ||
local _BRANCH=`echo $_OUTPUT | grep "* " | sed 's/* //g'` | ||
|
||
if [ "$_EDITED" != "" ]; then | ||
_EDITED_SYM="$ZSH_THEME_FOSSIL_PROMPT_DIRTY" | ||
fi | ||
|
||
echo "$ZSH_THEME_FOSSIL_PROMPT_PREFIX" \ | ||
"$_BRANCH" \ | ||
"$ZSH_THEME_FOSSIL_PROMPT_SUFFIX" \ | ||
"$_EDITED_SYM"\ | ||
"%{$reset_color%}" | ||
fi | ||
} | ||
|
||
function _fossil_get_command_list () { | ||
fossil help -a | grep -v "Usage|Common|This is" | ||
} | ||
|
||
function _fossil () { | ||
local context state state_descr line | ||
typeset -A opt_args | ||
|
||
_arguments \ | ||
'1: :->command'\ | ||
'2: :->subcommand' | ||
|
||
case $state in | ||
command) | ||
local _OUTPUT=`fossil branch 2>&1 | grep "use --repo"` | ||
if [ "$_OUTPUT" = "" ]; then | ||
compadd `_fossil_get_command_list` | ||
else | ||
compadd clone init import help version | ||
fi | ||
;; | ||
subcommand) | ||
if [ "$words[2]" = "help" ]; then | ||
compadd `_fossil_get_command_list` | ||
else | ||
compcall -D | ||
fi | ||
;; | ||
esac | ||
} | ||
|
||
function _fossil_prompt () { | ||
local current=`echo $PROMPT $RPROMPT | grep fossil` | ||
|
||
if [ "$_FOSSIL_PROMPT" = "" -o "$current" = "" ]; then | ||
local _prompt=${PROMPT} | ||
local _rprompt=${RPROMPT} | ||
|
||
local is_prompt=`echo $PROMPT | grep git` | ||
|
||
if [ "$is_prompt" = "" ]; then | ||
export RPROMPT="$_rprompt"'$(fossil_prompt_info)' | ||
else | ||
export PROMPT="$_prompt"'$(fossil_prompt_info) ' | ||
fi | ||
|
||
_FOSSIL_PROMPT="1" | ||
fi | ||
} | ||
|
||
compdef _fossil fossil | ||
|
||
autoload -U add-zsh-hook | ||
|
||
add-zsh-hook precmd _fossil_prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## ZSH-Geeknote | ||
|
||
[Geeknote](https://github.com/VitaliyRodnenko/geeknote) plugin for [oh-my-zsh framework](http://github.com/robbyrussell/oh-my-zsh). | ||
|
||
Plugins provides: | ||
|
||
- auto completion of commands and their options | ||
- alias `gn` | ||
|
||
You can find information how to install Geeknote and it's available commands on the [project website](http://www.geeknote.me/). | ||
|
||
Maintainer : Ján Koščo ([@s7anley](https://twitter.com/s7anley)) |
Oops, something went wrong.