Permalink
Browse files

Merge pull request #238 from hhugo/master

fix regex in autocomplete shell scripts
  • Loading branch information...
2 parents 712bf51 + ceed7ff commit 5cc6e544ab5950fb65cf3eb59585db55a436f42f @samoht samoht committed Oct 12, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 shell/opam_completion.sh
  2. +1 −1 shell/opam_completion_zsh.sh
View
@@ -13,7 +13,7 @@ _opam_global_options()
_opam_commands()
{
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"
}
@@ -13,7 +13,7 @@ _opam_global_options()
_opam_commands()
{
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"
}

0 comments on commit 5cc6e54

Please sign in to comment.