Compare View
Commits (2)
-
bd6dbd1 Merge pull request #4866 from willmendesneto/master
480ad80 Fix bug in compass docs search
0d0042a Merge pull request #4857 from depressiveRobot/master
31614f8 fix terminal color pollution, see issue https://github.com/robbyrussell/oh-my-zsh/issues/4856git-subtree-dir: repos/robbyrussell/oh-my-zsh
git-subtree-split: bd6dbd1d9b1fc8a523aaf588492eb3ed4113b49d
Changes
Showing 4 changed files Inline Diff
repos/robbyrussell/oh-my-zsh/plugins/frontend-search/README.md
| 1 | ## Introduction ## | 1 | ## Introduction ## |
| 2 | 2 | ||
| 3 | > Searches for your frontend web development made easier | 3 | > Searches for your frontend web development made easier |
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | ## Installation ## | 6 | ## Installation ## |
| 7 | 7 | ||
| 8 | Open your `~/.zshrc` file and enable the `frontend-search` plugin: | 8 | Open your `~/.zshrc` file and enable the `frontend-search` plugin: |
| 9 | 9 | ||
| 10 | ```zsh | 10 | ```zsh |
| 11 | 11 | ||
| 12 | plugins=( ... frontend-search) | 12 | plugins=( ... frontend-search) |
| 13 | 13 | ||
| 14 | ``` | 14 | ``` |
| 15 | 15 | ||
| 16 | 16 | ||
| 17 | ## Usage ## | 17 | ## Usage ## |
| 18 | 18 | ||
| 19 | You can use the frontend-search plugin in these two forms: | 19 | You can use the frontend-search plugin in these two forms: |
| 20 | 20 | ||
| 21 | * `frontend <context> <term> [more terms if you want]` | 21 | * `frontend <context> <term> [more terms if you want]` |
| 22 | * `<context> <term> [more terms if you want]` | 22 | * `<context> <term> [more terms if you want]` |
| 23 | 23 | ||
| 24 | For example, these two are equivalent: | 24 | For example, these two are equivalent: |
| 25 | 25 | ||
| 26 | ```zsh | 26 | ```zsh |
| 27 | $ frontend angularjs dependency injection | 27 | $ frontend angularjs dependency injection |
| 28 | $ angularjs dependency injection | 28 | $ angularjs dependency injection |
| 29 | ``` | 29 | ``` |
| 30 | 30 | ||
| 31 | Available search contexts are: | 31 | Available search contexts are: |
| 32 | 32 | ||
| 33 | | context | URL | | 33 | | context | URL | |
| 34 | |---------------|--------------------------------------------------------------------------| | 34 | |---------------|--------------------------------------------------------------------------| |
| 35 | | angularjs | `https://google.com/search?as_sitesearch=angularjs.org&as_q=` | | 35 | | angularjs | `https://google.com/search?as_sitesearch=angularjs.org&as_q=` | |
| 36 | | aurajs | `http://aurajs.com/api/#stq=` | | 36 | | aurajs | `http://aurajs.com/api/#stq=` | |
| 37 | | bem | `https://google.com/search?as_sitesearch=bem.info&as_q=` | | 37 | | bem | `https://google.com/search?as_sitesearch=bem.info&as_q=` | |
| 38 | | bootsnipp | `http://bootsnipp.com/search?q=` | | 38 | | bootsnipp | `http://bootsnipp.com/search?q=` | |
| 39 | | caniuse | `http://caniuse.com/#search=` | | 39 | | caniuse | `http://caniuse.com/#search=` | |
| 40 | | codepen | `http://codepen.io/search?q=` | | 40 | | codepen | `http://codepen.io/search?q=` | |
| 41 | | compass | `http://compass-style.org/search?q=` | | 41 | | compassdoc | `http://compass-style.org/search?q=` | |
| 42 | | cssflow | `http://www.cssflow.com/search?q=` | | 42 | | cssflow | `http://www.cssflow.com/search?q=` | |
| 43 | | dartlang | `https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:` | | 43 | | dartlang | `https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:` | |
| 44 | | emberjs | `http://emberjs.com/api/#stp=1&stq=` | | 44 | | emberjs | `http://emberjs.com/api/#stp=1&stq=` | |
| 45 | | fontello | `http://fontello.com/#search=` | | 45 | | fontello | `http://fontello.com/#search=` | |
| 46 | | html5please | `http://html5please.com/#` | | 46 | | html5please | `http://html5please.com/#` | |
| 47 | | jquery | `https://api.jquery.com/?s=` | | 47 | | jquery | `https://api.jquery.com/?s=` | |
| 48 | | lodash | `https://devdocs.io/lodash/index#` | | 48 | | lodash | `https://devdocs.io/lodash/index#` | |
| 49 | | mdn | `https://developer.mozilla.org/search?q=` | | 49 | | mdn | `https://developer.mozilla.org/search?q=` | |
| 50 | | npmjs | `https://www.npmjs.com/search?q=` | | 50 | | npmjs | `https://www.npmjs.com/search?q=` | |
| 51 | | qunit | `https://api.qunitjs.com/?s=` | | 51 | | qunit | `https://api.qunitjs.com/?s=` | |
| 52 | | reactjs | `https://google.com/search?as_sitesearch=facebook.github.io/react&as_q=` | | 52 | | reactjs | `https://google.com/search?as_sitesearch=facebook.github.io/react&as_q=` | |
| 53 | | smacss | `https://google.com/search?as_sitesearch=smacss.com&as_q=` | | 53 | | smacss | `https://google.com/search?as_sitesearch=smacss.com&as_q=` | |
| 54 | | stackoverflow | `http://stackoverflow.com/search?q=` | | 54 | | stackoverflow | `http://stackoverflow.com/search?q=` | |
| 55 | | unheap | `http://www.unheap.com/?s=` | | 55 | | unheap | `http://www.unheap.com/?s=` | |
| 56 | 56 | ||
| 57 | If you want to have another context, open an Issue and tell us! | 57 | If you want to have another context, open an Issue and tell us! |
| 58 | 58 | ||
| 59 | 59 | ||
| 60 | ## Author | 60 | ## Author |
| 61 | 61 | ||
| 62 | **Wilson Mendes (willmendesneto)** | 62 | **Wilson Mendes (willmendesneto)** |
| 63 | + <https://plus.google.com/+WilsonMendes> | 63 | + <https://plus.google.com/+WilsonMendes> |
| 64 | + <https://twitter.com/willmendesneto> | 64 | + <https://twitter.com/willmendesneto> |
| 65 | + <http://github.com/willmendesneto> | 65 | + <http://github.com/willmendesneto> |
| 66 | 66 |
repos/robbyrussell/oh-my-zsh/plugins/frontend-search/_frontend-search.sh
| 1 | #compdef frontend | 1 | #compdef frontend |
| 2 | 2 | ||
| 3 | zstyle ':completion:*:descriptions' format '%B%d%b' | 3 | zstyle ':completion:*:descriptions' format '%B%d%b' |
| 4 | zstyle ':completion::complete:frontend:*:commands' group-name commands | 4 | zstyle ':completion::complete:frontend:*:commands' group-name commands |
| 5 | zstyle ':completion::complete:frontend:*:frontend_points' group-name frontend_points | 5 | zstyle ':completion::complete:frontend:*:frontend_points' group-name frontend_points |
| 6 | zstyle ':completion::complete:frontend::' list-grouped | 6 | zstyle ':completion::complete:frontend::' list-grouped |
| 7 | 7 | ||
| 8 | zmodload zsh/mapfile | 8 | zmodload zsh/mapfile |
| 9 | 9 | ||
| 10 | function _frontend() { | 10 | function _frontend() { |
| 11 | local CONFIG=$HOME/.frontend-search | 11 | local CONFIG=$HOME/.frontend-search |
| 12 | local ret=1 | 12 | local ret=1 |
| 13 | 13 | ||
| 14 | local -a commands | 14 | local -a commands |
| 15 | local -a frontend_points | 15 | local -a frontend_points |
| 16 | 16 | ||
| 17 | frontend_points=( "${(f)mapfile[$CONFIG]//$HOME/~}" ) | 17 | frontend_points=( "${(f)mapfile[$CONFIG]//$HOME/~}" ) |
| 18 | 18 | ||
| 19 | commands=( | 19 | commands=( |
| 20 | 'jquery: Search in jQuery website' | 20 | 'jquery: Search in jQuery website' |
| 21 | 'mdn: Search in MDN website' | 21 | 'mdn: Search in MDN website' |
| 22 | 'compass: Search in COMPASS website' | 22 | 'compassdoc: Search in COMPASS website' |
| 23 | 'html5please: Search in HTML5 Please website' | 23 | 'html5please: Search in HTML5 Please website' |
| 24 | 'caniuse: Search in Can I Use website' | 24 | 'caniuse: Search in Can I Use website' |
| 25 | 'aurajs: Search in AuraJs website' | 25 | 'aurajs: Search in AuraJs website' |
| 26 | 'dartlang: Search in Dart website' | 26 | 'dartlang: Search in Dart website' |
| 27 | 'lodash: Search in Lo-Dash website' | 27 | 'lodash: Search in Lo-Dash website' |
| 28 | 'qunit: Search in Qunit website' | 28 | 'qunit: Search in Qunit website' |
| 29 | 'fontello: Search in fontello website' | 29 | 'fontello: Search in fontello website' |
| 30 | 'bootsnipp: Search in bootsnipp website' | 30 | 'bootsnipp: Search in bootsnipp website' |
| 31 | 'cssflow: Search in cssflow website' | 31 | 'cssflow: Search in cssflow website' |
| 32 | 'codepen: Search in codepen website' | 32 | 'codepen: Search in codepen website' |
| 33 | 'unheap: Search in unheap website' | 33 | 'unheap: Search in unheap website' |
| 34 | 'bem: Search in BEM website' | 34 | 'bem: Search in BEM website' |
| 35 | 'smacss: Search in SMACSS website' | 35 | 'smacss: Search in SMACSS website' |
| 36 | 'angularjs: Search in Angular website' | 36 | 'angularjs: Search in Angular website' |
| 37 | 'reactjs: Search in React website' | 37 | 'reactjs: Search in React website' |
| 38 | 'emberjs: Search in Ember website' | 38 | 'emberjs: Search in Ember website' |
| 39 | 'stackoverflow: Search in StackOverflow website' | 39 | 'stackoverflow: Search in StackOverflow website' |
| 40 | 'npmjs: Search in NPMJS website' | 40 | 'npmjs: Search in NPMJS website' |
| 41 | ) | 41 | ) |
| 42 | 42 | ||
| 43 | _arguments -C \ | 43 | _arguments -C \ |
| 44 | '1: :->first_arg' \ | 44 | '1: :->first_arg' \ |
| 45 | '2: :->second_arg' && ret=0 | 45 | '2: :->second_arg' && ret=0 |
| 46 | 46 | ||
| 47 | case $state in | 47 | case $state in |
| 48 | first_arg) | 48 | first_arg) |
| 49 | _describe -t frontend_points "Warp points" frontend_points && ret=0 | 49 | _describe -t frontend_points "Warp points" frontend_points && ret=0 |
| 50 | _describe -t commands "Commands" commands && ret=0 | 50 | _describe -t commands "Commands" commands && ret=0 |
| 51 | ;; | 51 | ;; |
| 52 | second_arg) | 52 | second_arg) |
| 53 | case $words[2] in | 53 | case $words[2] in |
| 54 | jquery) | 54 | jquery) |
| 55 | _describe -t points "Warp points" frontend_points && ret=0 | 55 | _describe -t points "Warp points" frontend_points && ret=0 |
| 56 | ;; | 56 | ;; |
| 57 | mdn) | 57 | mdn) |
| 58 | _describe -t points "Warp points" frontend_points && ret=0 | 58 | _describe -t points "Warp points" frontend_points && ret=0 |
| 59 | ;; | 59 | ;; |
| 60 | compass) | 60 | compassdoc) |
| 61 | _describe -t points "Warp points" frontend_points && ret=0 | 61 | _describe -t points "Warp points" frontend_points && ret=0 |
| 62 | ;; | 62 | ;; |
| 63 | html5please) | 63 | html5please) |
| 64 | _describe -t points "Warp points" frontend_points && ret=0 | 64 | _describe -t points "Warp points" frontend_points && ret=0 |
| 65 | ;; | 65 | ;; |
| 66 | caniuse) | 66 | caniuse) |
| 67 | _describe -t points "Warp points" frontend_points && ret=0 | 67 | _describe -t points "Warp points" frontend_points && ret=0 |
| 68 | ;; | 68 | ;; |
| 69 | aurajs) | 69 | aurajs) |
| 70 | _describe -t points "Warp points" frontend_points && ret=0 | 70 | _describe -t points "Warp points" frontend_points && ret=0 |
| 71 | ;; | 71 | ;; |
| 72 | dartlang) | 72 | dartlang) |
| 73 | _describe -t points "Warp points" frontend_points && ret=0 | 73 | _describe -t points "Warp points" frontend_points && ret=0 |
| 74 | ;; | 74 | ;; |
| 75 | lodash) | 75 | lodash) |
| 76 | _describe -t points "Warp points" frontend_points && ret=0 | 76 | _describe -t points "Warp points" frontend_points && ret=0 |
| 77 | ;; | 77 | ;; |
| 78 | qunit) | 78 | qunit) |
| 79 | _describe -t points "Warp points" frontend_points && ret=0 | 79 | _describe -t points "Warp points" frontend_points && ret=0 |
| 80 | ;; | 80 | ;; |
| 81 | fontello) | 81 | fontello) |
| 82 | _describe -t points "Warp points" frontend_points && ret=0 | 82 | _describe -t points "Warp points" frontend_points && ret=0 |
| 83 | ;; | 83 | ;; |
| 84 | bootsnipp) | 84 | bootsnipp) |
| 85 | _describe -t points "Warp points" frontend_points && ret=0 | 85 | _describe -t points "Warp points" frontend_points && ret=0 |
| 86 | ;; | 86 | ;; |
| 87 | cssflow) | 87 | cssflow) |
| 88 | _describe -t points "Warp points" frontend_points && ret=0 | 88 | _describe -t points "Warp points" frontend_points && ret=0 |
| 89 | ;; | 89 | ;; |
| 90 | codepen) | 90 | codepen) |
| 91 | _describe -t points "Warp points" frontend_points && ret=0 | 91 | _describe -t points "Warp points" frontend_points && ret=0 |
| 92 | ;; | 92 | ;; |
| 93 | unheap) | 93 | unheap) |
| 94 | _describe -t points "Warp points" frontend_points && ret=0 | 94 | _describe -t points "Warp points" frontend_points && ret=0 |
| 95 | ;; | 95 | ;; |
| 96 | bem) | 96 | bem) |
| 97 | _describe -t points "Warp points" frontend_points && ret=0 | 97 | _describe -t points "Warp points" frontend_points && ret=0 |
| 98 | ;; | 98 | ;; |
| 99 | smacss) | 99 | smacss) |
| 100 | _describe -t points "Warp points" frontend_points && ret=0 | 100 | _describe -t points "Warp points" frontend_points && ret=0 |
| 101 | ;; | 101 | ;; |
| 102 | angularjs) | 102 | angularjs) |
| 103 | _describe -t points "Warp points" frontend_points && ret=0 | 103 | _describe -t points "Warp points" frontend_points && ret=0 |
| 104 | ;; | 104 | ;; |
| 105 | reactjs) | 105 | reactjs) |
| 106 | _describe -t points "Warp points" frontend_points && ret=0 | 106 | _describe -t points "Warp points" frontend_points && ret=0 |
| 107 | ;; | 107 | ;; |
| 108 | emberjs) | 108 | emberjs) |
| 109 | _describe -t points "Warp points" frontend_points && ret=0 | 109 | _describe -t points "Warp points" frontend_points && ret=0 |
| 110 | ;; | 110 | ;; |
| 111 | stackoverflow) | 111 | stackoverflow) |
| 112 | _describe -t points "Warp points" frontend_points && ret=0 | 112 | _describe -t points "Warp points" frontend_points && ret=0 |
| 113 | ;; | 113 | ;; |
| 114 | npmjs) | 114 | npmjs) |
| 115 | _describe -t points "Warp points" frontend_points && ret=0 | 115 | _describe -t points "Warp points" frontend_points && ret=0 |
| 116 | ;; | 116 | ;; |
| 117 | esac | 117 | esac |
| 118 | ;; | 118 | ;; |
| 119 | esac | 119 | esac |
| 120 | 120 | ||
| 121 | return $ret | 121 | return $ret |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | _frontend "$@" | 124 | _frontend "$@" |
| 125 | 125 | ||
| 126 | # Local Variables: | 126 | # Local Variables: |
| 127 | # mode: Shell-Script | 127 | # mode: Shell-Script |
| 128 | # sh-indentation: 2 | 128 | # sh-indentation: 2 |
| 129 | # indent-tabs-mode: nil | 129 | # indent-tabs-mode: nil |
| 130 | # sh-basic-offset: 2 | 130 | # sh-basic-offset: 2 |
| 131 | # End: | 131 | # End: |
| 132 | # vim: ft=zsh sw=2 ts=2 et | 132 | # vim: ft=zsh sw=2 ts=2 et |
| 133 | 133 |
repos/robbyrussell/oh-my-zsh/plugins/frontend-search/frontend-search.plugin.zsh
| 1 | alias angularjs='frontend angularjs' | 1 | alias angularjs='frontend angularjs' |
| 2 | alias aurajs='frontend aurajs' | 2 | alias aurajs='frontend aurajs' |
| 3 | alias bem='frontend bem' | 3 | alias bem='frontend bem' |
| 4 | alias bootsnipp='frontend bootsnipp' | 4 | alias bootsnipp='frontend bootsnipp' |
| 5 | alias caniuse='frontend caniuse' | 5 | alias caniuse='frontend caniuse' |
| 6 | alias codepen='frontend codepen' | 6 | alias codepen='frontend codepen' |
| 7 | alias compass='frontend compass' | 7 | alias compassdoc='frontend compassdoc' |
| 8 | alias cssflow='frontend cssflow' | 8 | alias cssflow='frontend cssflow' |
| 9 | alias dartlang='frontend dartlang' | 9 | alias dartlang='frontend dartlang' |
| 10 | alias emberjs='frontend emberjs' | 10 | alias emberjs='frontend emberjs' |
| 11 | alias fontello='frontend fontello' | 11 | alias fontello='frontend fontello' |
| 12 | alias html5please='frontend html5please' | 12 | alias html5please='frontend html5please' |
| 13 | alias jquery='frontend jquery' | 13 | alias jquery='frontend jquery' |
| 14 | alias lodash='frontend lodash' | 14 | alias lodash='frontend lodash' |
| 15 | alias mdn='frontend mdn' | 15 | alias mdn='frontend mdn' |
| 16 | alias npmjs='frontend npmjs' | 16 | alias npmjs='frontend npmjs' |
| 17 | alias qunit='frontend qunit' | 17 | alias qunit='frontend qunit' |
| 18 | alias reactjs='frontend reactjs' | 18 | alias reactjs='frontend reactjs' |
| 19 | alias smacss='frontend smacss' | 19 | alias smacss='frontend smacss' |
| 20 | alias stackoverflow='frontend stackoverflow' | 20 | alias stackoverflow='frontend stackoverflow' |
| 21 | alias unheap='frontend unheap' | 21 | alias unheap='frontend unheap' |
| 22 | 22 | ||
| 23 | function frontend() { | 23 | function frontend() { |
| 24 | emulate -L zsh | 24 | emulate -L zsh |
| 25 | 25 | ||
| 26 | # define search context URLS | 26 | # define search context URLS |
| 27 | typeset -A urls | 27 | typeset -A urls |
| 28 | urls=( | 28 | urls=( |
| 29 | angularjs 'https://google.com/search?as_sitesearch=angularjs.org&as_q=' | 29 | angularjs 'https://google.com/search?as_sitesearch=angularjs.org&as_q=' |
| 30 | aurajs 'http://aurajs.com/api/#stq=' | 30 | aurajs 'http://aurajs.com/api/#stq=' |
| 31 | bem 'https://google.com/search?as_sitesearch=bem.info&as_q=' | 31 | bem 'https://google.com/search?as_sitesearch=bem.info&as_q=' |
| 32 | bootsnipp 'http://bootsnipp.com/search?q=' | 32 | bootsnipp 'http://bootsnipp.com/search?q=' |
| 33 | caniuse 'http://caniuse.com/#search=' | 33 | caniuse 'http://caniuse.com/#search=' |
| 34 | codepen 'http://codepen.io/search?q=' | 34 | codepen 'http://codepen.io/search?q=' |
| 35 | compass 'http://compass-style.org/search?q=' | 35 | compassdoc 'http://compass-style.org/search?q=' |
| 36 | cssflow 'http://www.cssflow.com/search?q=' | 36 | cssflow 'http://www.cssflow.com/search?q=' |
| 37 | dartlang 'https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:' | 37 | dartlang 'https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:' |
| 38 | emberjs 'http://emberjs.com/api/#stp=1&stq=' | 38 | emberjs 'http://emberjs.com/api/#stp=1&stq=' |
| 39 | fontello 'http://fontello.com/#search=' | 39 | fontello 'http://fontello.com/#search=' |
| 40 | html5please 'http://html5please.com/#' | 40 | html5please 'http://html5please.com/#' |
| 41 | jquery 'https://api.jquery.com/?s=' | 41 | jquery 'https://api.jquery.com/?s=' |
| 42 | lodash 'https://devdocs.io/lodash/index#' | 42 | lodash 'https://devdocs.io/lodash/index#' |
| 43 | mdn 'https://developer.mozilla.org/search?q=' | 43 | mdn 'https://developer.mozilla.org/search?q=' |
| 44 | npmjs 'https://www.npmjs.com/search?q=' | 44 | npmjs 'https://www.npmjs.com/search?q=' |
| 45 | qunit 'https://api.qunitjs.com/?s=' | 45 | qunit 'https://api.qunitjs.com/?s=' |
| 46 | reactjs 'https://google.com/search?as_sitesearch=facebook.github.io/react&as_q=' | 46 | reactjs 'https://google.com/search?as_sitesearch=facebook.github.io/react&as_q=' |
| 47 | smacss 'https://google.com/search?as_sitesearch=smacss.com&as_q=' | 47 | smacss 'https://google.com/search?as_sitesearch=smacss.com&as_q=' |
| 48 | stackoverflow 'http://stackoverflow.com/search?q=' | 48 | stackoverflow 'http://stackoverflow.com/search?q=' |
| 49 | unheap 'http://www.unheap.com/?s=' | 49 | unheap 'http://www.unheap.com/?s=' |
| 50 | ) | 50 | ) |
| 51 | 51 | ||
| 52 | # show help for command list | 52 | # show help for command list |
| 53 | if [[ $# -lt 2 ]] | 53 | if [[ $# -lt 2 ]] |
| 54 | then | 54 | then |
| 55 | print -P "Usage: frontend %Ucontext%u %Uterm%u [...%Umore%u] (or just: %Ucontext%u %Uterm%u [...%Umore%u])" | 55 | print -P "Usage: frontend %Ucontext%u %Uterm%u [...%Umore%u] (or just: %Ucontext%u %Uterm%u [...%Umore%u])" |
| 56 | print -P "" | 56 | print -P "" |
| 57 | print -P "%Uterm%u and what follows is what will be searched for in the %Ucontext%u website," | 57 | print -P "%Uterm%u and what follows is what will be searched for in the %Ucontext%u website," |
| 58 | print -P "and %Ucontext%u is one of the following:" | 58 | print -P "and %Ucontext%u is one of the following:" |
| 59 | print -P "" | 59 | print -P "" |
| 60 | print -P " angularjs, aurajs, bem, bootsnipp, caniuse, codepen, compass, cssflow," | 60 | print -P " angularjs, aurajs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow," |
| 61 | print -P " dartlang, emberjs, fontello, html5please, jquery, lodash, mdn, npmjs," | 61 | print -P " dartlang, emberjs, fontello, html5please, jquery, lodash, mdn, npmjs," |
| 62 | print -P " qunit, reactjs, smacss, stackoverflow, unheap" | 62 | print -P " qunit, reactjs, smacss, stackoverflow, unheap" |
| 63 | print -P "" | 63 | print -P "" |
| 64 | print -P "For example: frontend npmjs mocha (or just: npmjs mocha)." | 64 | print -P "For example: frontend npmjs mocha (or just: npmjs mocha)." |
| 65 | print -P "" | 65 | print -P "" |
| 66 | return 1 | 66 | return 1 |
| 67 | fi | 67 | fi |
| 68 | 68 | ||
| 69 | # check whether the search context is supported | 69 | # check whether the search context is supported |
| 70 | if [[ -z "$urls[$1]" ]] | 70 | if [[ -z "$urls[$1]" ]] |
| 71 | then | 71 | then |
| 72 | echo "Search context \"$1\" currently not supported." | 72 | echo "Search context \"$1\" currently not supported." |
| 73 | echo "" | 73 | echo "" |
| 74 | echo "Valid contexts are:" | 74 | echo "Valid contexts are:" |
| 75 | echo "" | 75 | echo "" |
| 76 | echo " angularjs, aurajs, bem, bootsnipp, caniuse, codepen, compass, cssflow, " | 76 | echo " angularjs, aurajs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow, " |
| 77 | echo " dartlang, emberjs, fontello, html5please, jquery, lodash, mdn, npmjs, " | 77 | echo " dartlang, emberjs, fontello, html5please, jquery, lodash, mdn, npmjs, " |
| 78 | echo " qunit, reactjs, smacss, stackoverflow, unheap" | 78 | echo " qunit, reactjs, smacss, stackoverflow, unheap" |
| 79 | echo "" | 79 | echo "" |
| 80 | return 1 | 80 | return 1 |
| 81 | fi | 81 | fi |
| 82 | 82 | ||
| 83 | # build search url: | 83 | # build search url: |
| 84 | # join arguments passed with '+', then append to search context URL | 84 | # join arguments passed with '+', then append to search context URL |
| 85 | # TODO substitute for proper urlencode method | 85 | # TODO substitute for proper urlencode method |
| 86 | url="${urls[$1]}${(j:+:)@[2,-1]}" | 86 | url="${urls[$1]}${(j:+:)@[2,-1]}" |
| 87 | 87 | ||
| 88 | echo "Opening $url ..." | 88 | echo "Opening $url ..." |
| 89 | 89 | ||
| 90 | open_command "$url" | 90 | open_command "$url" |
| 91 | } | 91 | } |
| 92 | 92 |
repos/robbyrussell/oh-my-zsh/plugins/mvn/mvn.plugin.zsh
| 1 | # mvn-color based on https://gist.github.com/1027800 | 1 | # mvn-color based on https://gist.github.com/1027800 |
| 2 | export BOLD=`tput bold` | 2 | BOLD=`tput bold` |
| 3 | export UNDERLINE_ON=`tput smul` | 3 | UNDERLINE_ON=`tput smul` |
| 4 | export UNDERLINE_OFF=`tput rmul` | 4 | UNDERLINE_OFF=`tput rmul` |
| 5 | export TEXT_BLACK=`tput setaf 0` | 5 | TEXT_BLACK=`tput setaf 0` |
| 6 | export TEXT_RED=`tput setaf 1` | 6 | TEXT_RED=`tput setaf 1` |
| 7 | export TEXT_GREEN=`tput setaf 2` | 7 | TEXT_GREEN=`tput setaf 2` |
| 8 | export TEXT_YELLOW=`tput setaf 3` | 8 | TEXT_YELLOW=`tput setaf 3` |
| 9 | export TEXT_BLUE=`tput setaf 4` | 9 | TEXT_BLUE=`tput setaf 4` |
| 10 | export TEXT_MAGENTA=`tput setaf 5` | 10 | TEXT_MAGENTA=`tput setaf 5` |
| 11 | export TEXT_CYAN=`tput setaf 6` | 11 | TEXT_CYAN=`tput setaf 6` |
| 12 | export TEXT_WHITE=`tput setaf 7` | 12 | TEXT_WHITE=`tput setaf 7` |
| 13 | export BACKGROUND_BLACK=`tput setab 0` | 13 | BACKGROUND_BLACK=`tput setab 0` |
| 14 | export BACKGROUND_RED=`tput setab 1` | 14 | BACKGROUND_RED=`tput setab 1` |
| 15 | export BACKGROUND_GREEN=`tput setab 2` | 15 | BACKGROUND_GREEN=`tput setab 2` |
| 16 | export BACKGROUND_YELLOW=`tput setab 3` | 16 | BACKGROUND_YELLOW=`tput setab 3` |
| 17 | export BACKGROUND_BLUE=`tput setab 4` | 17 | BACKGROUND_BLUE=`tput setab 4` |
| 18 | export BACKGROUND_MAGENTA=`tput setab 5` | 18 | BACKGROUND_MAGENTA=`tput setab 5` |
| 19 | export BACKGROUND_CYAN=`tput setab 6` | 19 | BACKGROUND_CYAN=`tput setab 6` |
| 20 | export BACKGROUND_WHITE=`tput setab 7` | 20 | BACKGROUND_WHITE=`tput setab 7` |
| 21 | export RESET_FORMATTING=`tput sgr0` | 21 | RESET_FORMATTING=`tput sgr0` |
| 22 | 22 | ||
| 23 | 23 | ||
| 24 | # Wrapper function for Maven's mvn command. | 24 | # Wrapper function for Maven's mvn command. |
| 25 | mvn-color() | 25 | mvn-color() |
| 26 | { | 26 | { |
| 27 | ( | 27 | ( |
| 28 | # Filter mvn output using sed. Before filtering set the locale to C, so invalid characters won't break some sed implementations | 28 | # Filter mvn output using sed. Before filtering set the locale to C, so invalid characters won't break some sed implementations |
| 29 | unset LANG | 29 | unset LANG |
| 30 | LC_CTYPE=C mvn $@ | sed -e "s/\(\[INFO\]\)\(.*\)/${TEXT_BLUE}${BOLD}\1${RESET_FORMATTING}\2/g" \ | 30 | LC_CTYPE=C mvn $@ | sed -e "s/\(\[INFO\]\)\(.*\)/${TEXT_BLUE}${BOLD}\1${RESET_FORMATTING}\2/g" \ |
| 31 | -e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \ | 31 | -e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \ |
| 32 | -e "s/\(\[WARNING\]\)\(.*\)/${BOLD}${TEXT_YELLOW}\1${RESET_FORMATTING}\2/g" \ | 32 | -e "s/\(\[WARNING\]\)\(.*\)/${BOLD}${TEXT_YELLOW}\1${RESET_FORMATTING}\2/g" \ |
| 33 | -e "s/\(\[ERROR\]\)\(.*\)/${BOLD}${TEXT_RED}\1${RESET_FORMATTING}\2/g" \ | 33 | -e "s/\(\[ERROR\]\)\(.*\)/${BOLD}${TEXT_RED}\1${RESET_FORMATTING}\2/g" \ |
| 34 | -e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/${BOLD}${TEXT_GREEN}Tests run: \1${RESET_FORMATTING}, Failures: ${BOLD}${TEXT_RED}\2${RESET_FORMATTING}, Errors: ${BOLD}${TEXT_RED}\3${RESET_FORMATTING}, Skipped: ${BOLD}${TEXT_YELLOW}\4${RESET_FORMATTING}/g" | 34 | -e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/${BOLD}${TEXT_GREEN}Tests run: \1${RESET_FORMATTING}, Failures: ${BOLD}${TEXT_RED}\2${RESET_FORMATTING}, Errors: ${BOLD}${TEXT_RED}\3${RESET_FORMATTING}, Skipped: ${BOLD}${TEXT_YELLOW}\4${RESET_FORMATTING}/g" |
| 35 | 35 | ||
| 36 | # Make sure formatting is reset | 36 | # Make sure formatting is reset |
| 37 | echo -ne ${RESET_FORMATTING} | 37 | echo -ne ${RESET_FORMATTING} |
| 38 | ) | 38 | ) |
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | # Override the mvn command with the colorized one. | 41 | # Override the mvn command with the colorized one. |
| 42 | #alias mvn="mvn-color" | 42 | #alias mvn="mvn-color" |
| 43 | 43 | ||
| 44 | # aliases | 44 | # aliases |
| 45 | alias mvncie='mvn clean install eclipse:eclipse' | 45 | alias mvncie='mvn clean install eclipse:eclipse' |
| 46 | alias mvnci='mvn clean install' | 46 | alias mvnci='mvn clean install' |
| 47 | alias mvncist='mvn clean install -DskipTests' | 47 | alias mvncist='mvn clean install -DskipTests' |
| 48 | alias mvne='mvn eclipse:eclipse' | 48 | alias mvne='mvn eclipse:eclipse' |
| 49 | alias mvnce='mvn clean eclipse:clean eclipse:eclipse' | 49 | alias mvnce='mvn clean eclipse:clean eclipse:eclipse' |
| 50 | alias mvnd='mvn deploy' | 50 | alias mvnd='mvn deploy' |
| 51 | alias mvnp='mvn package' | 51 | alias mvnp='mvn package' |
| 52 | alias mvnc='mvn clean' | 52 | alias mvnc='mvn clean' |
| 53 | alias mvncom='mvn compile' | 53 | alias mvncom='mvn compile' |
| 54 | alias mvnct='mvn clean test' | 54 | alias mvnct='mvn clean test' |
| 55 | alias mvnt='mvn test' | 55 | alias mvnt='mvn test' |
| 56 | alias mvnag='mvn archetype:generate' | 56 | alias mvnag='mvn archetype:generate' |
| 57 | alias mvn-updates='mvn versions:display-dependency-updates' | 57 | alias mvn-updates='mvn versions:display-dependency-updates' |
| 58 | alias mvntc7='mvn tomcat7:run' | 58 | alias mvntc7='mvn tomcat7:run' |
| 59 | alias mvntc='mvn tomcat:run' | 59 | alias mvntc='mvn tomcat:run' |
| 60 | alias mvnjetty='mvn jetty:run' | 60 | alias mvnjetty='mvn jetty:run' |
| 61 | alias mvndt='mvn dependency:tree' | 61 | alias mvndt='mvn dependency:tree' |
| 62 | alias mvns='mvn site' | 62 | alias mvns='mvn site' |
| 63 | alias mvnsrc='mvn dependency:sources' | 63 | alias mvnsrc='mvn dependency:sources' |
| 64 | alias mvndocs='mvn dependency:resolve -Dclassifier=javadoc' | 64 | alias mvndocs='mvn dependency:resolve -Dclassifier=javadoc' |
| 65 | 65 | ||
| 66 | function listMavenCompletions { | 66 | function listMavenCompletions { |
| 67 | reply=( | 67 | reply=( |
| 68 | # common lifecycle | 68 | # common lifecycle |
| 69 | clean process-resources compile process-test-resources test-compile test integration-test package verify install deploy site | 69 | clean process-resources compile process-test-resources test-compile test integration-test package verify install deploy site |
| 70 | 70 | ||
| 71 | # common plugins | 71 | # common plugins |
| 72 | deploy failsafe install site surefire checkstyle javadoc jxr pmd ant antrun archetype assembly dependency enforcer gpg help release repository source eclipse idea jetty cargo jboss tomcat tomcat6 tomcat7 exec versions war ear ejb android scm buildnumber nexus repository sonar license hibernate3 liquibase flyway gwt | 72 | deploy failsafe install site surefire checkstyle javadoc jxr pmd ant antrun archetype assembly dependency enforcer gpg help release repository source eclipse idea jetty cargo jboss tomcat tomcat6 tomcat7 exec versions war ear ejb android scm buildnumber nexus repository sonar license hibernate3 liquibase flyway gwt |
| 73 | 73 | ||
| 74 | # deploy | 74 | # deploy |
| 75 | deploy:deploy-file | 75 | deploy:deploy-file |
| 76 | # failsafe | 76 | # failsafe |
| 77 | failsafe:integration-test failsafe:verify | 77 | failsafe:integration-test failsafe:verify |
| 78 | # install | 78 | # install |
| 79 | install:install-file | 79 | install:install-file |
| 80 | # site | 80 | # site |
| 81 | site:site site:deploy site:run site:stage site:stage-deploy | 81 | site:site site:deploy site:run site:stage site:stage-deploy |
| 82 | # surefire | 82 | # surefire |
| 83 | surefire:test | 83 | surefire:test |
| 84 | 84 | ||
| 85 | # checkstyle | 85 | # checkstyle |
| 86 | checkstyle:checkstyle checkstyle:check | 86 | checkstyle:checkstyle checkstyle:check |
| 87 | # javadoc | 87 | # javadoc |
| 88 | javadoc:javadoc javadoc:jar javadoc:aggregate | 88 | javadoc:javadoc javadoc:jar javadoc:aggregate |
| 89 | # jxr | 89 | # jxr |
| 90 | jxr:jxr | 90 | jxr:jxr |
| 91 | # pmd | 91 | # pmd |
| 92 | pmd:pmd pmd:cpd pmd:check pmd:cpd-check | 92 | pmd:pmd pmd:cpd pmd:check pmd:cpd-check |
| 93 | 93 | ||
| 94 | # ant | 94 | # ant |
| 95 | ant:ant ant:clean | 95 | ant:ant ant:clean |
| 96 | # antrun | 96 | # antrun |
| 97 | antrun:run | 97 | antrun:run |
| 98 | # archetype | 98 | # archetype |
| 99 | archetype:generate archetype:create-from-project archetype:crawl | 99 | archetype:generate archetype:create-from-project archetype:crawl |
| 100 | # assembly | 100 | # assembly |
| 101 | assembly:single assembly:assembly | 101 | assembly:single assembly:assembly |
| 102 | # dependency | 102 | # dependency |
| 103 | dependency:analyze dependency:analyze-dep-mgt dependency:analyze-only dependency:analyze-report dependency:build-classpath dependency:copy dependency:copy-dependencies dependency:get dependency:go-offline dependency:list dependency:purge-local-repository dependency:resolve dependency:resolve-plugins dependency:sources dependency:tree dependency:unpack dependency:unpack-dependencies | 103 | dependency:analyze dependency:analyze-dep-mgt dependency:analyze-only dependency:analyze-report dependency:build-classpath dependency:copy dependency:copy-dependencies dependency:get dependency:go-offline dependency:list dependency:purge-local-repository dependency:resolve dependency:resolve-plugins dependency:sources dependency:tree dependency:unpack dependency:unpack-dependencies |
| 104 | # enforcer | 104 | # enforcer |
| 105 | enforcer:enforce | 105 | enforcer:enforce |
| 106 | # gpg | 106 | # gpg |
| 107 | gpg:sign gpg:sign-and-deploy-file | 107 | gpg:sign gpg:sign-and-deploy-file |
| 108 | # help | 108 | # help |
| 109 | help:active-profiles help:all-profiles help:describe help:effective-pom help:effective-settings help:evaluate help:expressions help:system | 109 | help:active-profiles help:all-profiles help:describe help:effective-pom help:effective-settings help:evaluate help:expressions help:system |
| 110 | # release | 110 | # release |
| 111 | release:clean release:prepare release:rollback release:perform release:stage release:branch release:update-versions | 111 | release:clean release:prepare release:rollback release:perform release:stage release:branch release:update-versions |
| 112 | # repository | 112 | # repository |
| 113 | repository:bundle-create repository:bundle-pack | 113 | repository:bundle-create repository:bundle-pack |
| 114 | # source | 114 | # source |
| 115 | source:aggregate source:jar source:jar-no-fork | 115 | source:aggregate source:jar source:jar-no-fork |
| 116 | 116 | ||
| 117 | # eclipse | 117 | # eclipse |
| 118 | eclipse:clean eclipse:eclipse | 118 | eclipse:clean eclipse:eclipse |
| 119 | # idea | 119 | # idea |
| 120 | idea:clean idea:idea | 120 | idea:clean idea:idea |
| 121 | 121 | ||
| 122 | # jetty | 122 | # jetty |
| 123 | jetty:run jetty:run-exploded | 123 | jetty:run jetty:run-exploded |
| 124 | # cargo | 124 | # cargo |
| 125 | cargo:start cargo:run cargo:stop cargo:deploy cargo:undeploy cargo:help | 125 | cargo:start cargo:run cargo:stop cargo:deploy cargo:undeploy cargo:help |
| 126 | # jboss | 126 | # jboss |
| 127 | jboss:start jboss:stop jboss:deploy jboss:undeploy jboss:redeploy | 127 | jboss:start jboss:stop jboss:deploy jboss:undeploy jboss:redeploy |
| 128 | # tomcat | 128 | # tomcat |
| 129 | tomcat:start tomcat:stop tomcat:deploy tomcat:undeploy tomcat:redeploy | 129 | tomcat:start tomcat:stop tomcat:deploy tomcat:undeploy tomcat:redeploy |
| 130 | # tomcat6 | 130 | # tomcat6 |
| 131 | tomcat6:run tomcat6:run-war tomcat6:run-war-only tomcat6:stop tomcat6:deploy tomcat6:undeploy | 131 | tomcat6:run tomcat6:run-war tomcat6:run-war-only tomcat6:stop tomcat6:deploy tomcat6:undeploy |
| 132 | # tomcat7 | 132 | # tomcat7 |
| 133 | tomcat7:run tomcat7:run-war tomcat7:run-war-only tomcat7:deploy | 133 | tomcat7:run tomcat7:run-war tomcat7:run-war-only tomcat7:deploy |
| 134 | # tomee | 134 | # tomee |
| 135 | tomee:run tomee:run-war tomee:run-war-only tomee:stop tomee:deploy tomee:undeploy | 135 | tomee:run tomee:run-war tomee:run-war-only tomee:stop tomee:deploy tomee:undeploy |
| 136 | # spring-boot | 136 | # spring-boot |
| 137 | spring-boot:run spring-boot:repackage | 137 | spring-boot:run spring-boot:repackage |
| 138 | # exec | 138 | # exec |
| 139 | exec:exec exec:java | 139 | exec:exec exec:java |
| 140 | # versions | 140 | # versions |
| 141 | versions:display-dependency-updates versions:display-plugin-updates versions:display-property-updates versions:update-parent versions:update-properties versions:update-child-modules versions:lock-snapshots versions:unlock-snapshots versions:resolve-ranges versions:set versions:use-releases versions:use-next-releases versions:use-latest-releases versions:use-next-snapshots versions:use-latest-snapshots versions:use-next-versions versions:use-latest-versions versions:commit versions:revert | 141 | versions:display-dependency-updates versions:display-plugin-updates versions:display-property-updates versions:update-parent versions:update-properties versions:update-child-modules versions:lock-snapshots versions:unlock-snapshots versions:resolve-ranges versions:set versions:use-releases versions:use-next-releases versions:use-latest-releases versions:use-next-snapshots versions:use-latest-snapshots versions:use-next-versions versions:use-latest-versions versions:commit versions:revert |
| 142 | # scm | 142 | # scm |
| 143 | scm:add scm:checkin scm:checkout scm:update scm:status | 143 | scm:add scm:checkin scm:checkout scm:update scm:status |
| 144 | # buildnumber | 144 | # buildnumber |
| 145 | buildnumber:create buildnumber:create-timestamp buildnumber:help buildnumber:hgchangeset | 145 | buildnumber:create buildnumber:create-timestamp buildnumber:help buildnumber:hgchangeset |
| 146 | 146 | ||
| 147 | # war | 147 | # war |
| 148 | war:war war:exploded war:inplace war:manifest | 148 | war:war war:exploded war:inplace war:manifest |
| 149 | # ear | 149 | # ear |
| 150 | ear:ear ear:generate-application-xml | 150 | ear:ear ear:generate-application-xml |
| 151 | # ejb | 151 | # ejb |
| 152 | ejb:ejb | 152 | ejb:ejb |
| 153 | # android | 153 | # android |
| 154 | android:apk android:apklib android:deploy android:deploy-dependencies android:dex android:emulator-start android:emulator-stop android:emulator-stop-all android:generate-sources android:help android:instrument android:manifest-update android:pull android:push android:redeploy android:run android:undeploy android:unpack android:version-update android:zipalign android:devices | 154 | android:apk android:apklib android:deploy android:deploy-dependencies android:dex android:emulator-start android:emulator-stop android:emulator-stop-all android:generate-sources android:help android:instrument android:manifest-update android:pull android:push android:redeploy android:run android:undeploy android:unpack android:version-update android:zipalign android:devices |
| 155 | # nexus | 155 | # nexus |
| 156 | nexus:staging-list nexus:staging-close nexus:staging-drop nexus:staging-release nexus:staging-build-promotion nexus:staging-profiles-list nexus:settings-download | 156 | nexus:staging-list nexus:staging-close nexus:staging-drop nexus:staging-release nexus:staging-build-promotion nexus:staging-profiles-list nexus:settings-download |
| 157 | # repository | 157 | # repository |
| 158 | repository:bundle-create repository:bundle-pack repository:help | 158 | repository:bundle-create repository:bundle-pack repository:help |
| 159 | 159 | ||
| 160 | # sonar | 160 | # sonar |
| 161 | sonar:sonar | 161 | sonar:sonar |
| 162 | # license | 162 | # license |
| 163 | license:format license:check | 163 | license:format license:check |
| 164 | # hibernate3 | 164 | # hibernate3 |
| 165 | hibernate3:hbm2ddl hibernate3:help | 165 | hibernate3:hbm2ddl hibernate3:help |
| 166 | # liquibase | 166 | # liquibase |
| 167 | liquibase:changelogSync liquibase:changelogSyncSQL liquibase:clearCheckSums liquibase:dbDoc liquibase:diff liquibase:dropAll liquibase:help liquibase:migrate liquibase:listLocks liquibase:migrateSQL liquibase:releaseLocks liquibase:rollback liquibase:rollbackSQL liquibase:status liquibase:tag liquibase:update liquibase:updateSQL liquibase:updateTestingRollback | 167 | liquibase:changelogSync liquibase:changelogSyncSQL liquibase:clearCheckSums liquibase:dbDoc liquibase:diff liquibase:dropAll liquibase:help liquibase:migrate liquibase:listLocks liquibase:migrateSQL liquibase:releaseLocks liquibase:rollback liquibase:rollbackSQL liquibase:status liquibase:tag liquibase:update liquibase:updateSQL liquibase:updateTestingRollback |
| 168 | # flyway | 168 | # flyway |
| 169 | flyway:clean flyway:history flyway:init flyway:migrate flyway:status flyway:validate | 169 | flyway:clean flyway:history flyway:init flyway:migrate flyway:status flyway:validate |
| 170 | # gwt | 170 | # gwt |
| 171 | gwt:browser gwt:clean gwt:compile gwt:compile-report gwt:css gwt:debug gwt:eclipse gwt:eclipseTest gwt:generateAsync gwt:help gwt:i18n gwt:mergewebxml gwt:resources gwt:run gwt:sdkInstall gwt:source-jar gwt:soyc gwt:test | 171 | gwt:browser gwt:clean gwt:compile gwt:compile-report gwt:css gwt:debug gwt:eclipse gwt:eclipseTest gwt:generateAsync gwt:help gwt:i18n gwt:mergewebxml gwt:resources gwt:run gwt:sdkInstall gwt:source-jar gwt:soyc gwt:test |
| 172 | 172 | ||
| 173 | # options | 173 | # options |
| 174 | -Dmaven.test.skip=true -DskipTests -Dmaven.surefire.debug -DenableCiProfile -Dpmd.skip=true -Dcheckstyle.skip=true -Dtycho.mode=maven | 174 | -Dmaven.test.skip=true -DskipTests -Dmaven.surefire.debug -DenableCiProfile -Dpmd.skip=true -Dcheckstyle.skip=true -Dtycho.mode=maven |
| 175 | 175 | ||
| 176 | # arguments | 176 | # arguments |
| 177 | -am -amd -B -C -c -cpu -D -e -emp -ep -f -fae -ff -fn -gs -h -l -N -npr -npu -nsu -o -P -pl -q -rf -s -T -t -U -up -V -v -X | 177 | -am -amd -B -C -c -cpu -D -e -emp -ep -f -fae -ff -fn -gs -h -l -N -npr -npu -nsu -o -P -pl -q -rf -s -T -t -U -up -V -v -X |
| 178 | 178 | ||
| 179 | cli:execute cli:execute-phase | 179 | cli:execute cli:execute-phase |
| 180 | archetype:generate generate-sources | 180 | archetype:generate generate-sources |
| 181 | cobertura:cobertura | 181 | cobertura:cobertura |
| 182 | -Dtest= `if [ -d ./src/test/java ] ; then find ./src/test/java -type f -name '*.java' | grep -v svn | sed 's?.*/\([^/]*\)\..*?-Dtest=\1?' ; fi` | 182 | -Dtest= `if [ -d ./src/test/java ] ; then find ./src/test/java -type f -name '*.java' | grep -v svn | sed 's?.*/\([^/]*\)\..*?-Dtest=\1?' ; fi` |
| 183 | ); | 183 | ); |
| 184 | } | 184 | } |
| 185 | 185 | ||
| 186 | compctl -K listMavenCompletions mvn | 186 | compctl -K listMavenCompletions mvn |
| 187 | 187 |