Attempting to carve out a sensible chunk of stuff for a dotfiles repo.
Sure hope I didn't miss any super secret crap :-P
This commit is contained in:
13
bash_completion.d/post-review
Normal file
13
bash_completion.d/post-review
Normal file
@@ -0,0 +1,13 @@
|
||||
function __post_review_opts(){
|
||||
post-review --help | grep -E "^ *-" | \
|
||||
awk '/^ *--/ { gsub(/=.*/, "") ; print $1 }
|
||||
/^ *-[^-]/ {
|
||||
gsub(/=.*/, "") ;
|
||||
gsub(/,/, "") ;
|
||||
print $1 "\n" $2
|
||||
}' | grep -v ID
|
||||
}
|
||||
|
||||
which post-review >/dev/null 2>&1 && complete -W "$(__post_review_opts)" -o default post-review
|
||||
|
||||
# vim:filetype=sh
|
Reference in New Issue
Block a user