Skip to content

Commit

Permalink
Merge pull request ocaml#238 from hhugo/master
Browse files Browse the repository at this point in the history
fix regex in autocomplete shell scripts
  • Loading branch information
samoht committed Oct 12, 2012
2 parents 712bf51 + ceed7ff commit 5cc6e54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/opam_completion.sh
Expand Up @@ -13,7 +13,7 @@ _opam_global_options()
_opam_commands() _opam_commands()
{ {
local res local res
res="$( opam --help 2>/dev/null | grep '^ ' | sed 's/ *//;s/ .*//' | grep -v '^-' )" res="$( opam --help 2>/dev/null | grep '^ [^ ]' | sed 's/ *//;s/ .*//' | grep -v '^-' )"
_opam_add "$res" _opam_add "$res"
} }


Expand Down
2 changes: 1 addition & 1 deletion shell/opam_completion_zsh.sh
Expand Up @@ -13,7 +13,7 @@ _opam_global_options()
_opam_commands() _opam_commands()
{ {
local res local res
res="$( opam --help 2>/dev/null | grep '^ ' | sed 's/ *//;s/ .*//' | grep -v '^-' )" res="$( opam --help 2>/dev/null | grep '^ [^ ]' | sed 's/ *//;s/ .*//' | grep -v '^-' )"
_opam_add "$res" _opam_add "$res"
} }


Expand Down

0 comments on commit 5cc6e54

Please sign in to comment.