2012-01-28 03:03:01 +01:00
|
|
|
#compdef psub
|
|
|
|
#autoload
|
|
|
|
|
2012-02-01 05:37:51 +01:00
|
|
|
#
|
|
|
|
# Completes psub.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
2012-01-28 03:03:01 +01:00
|
|
|
_arguments \
|
|
|
|
'-g[match globally]' \
|
|
|
|
'-i[ignore case]' \
|
|
|
|
'-m[^ and $ match the start and the end of a line]' \
|
|
|
|
'-s[. matches newline]' \
|
|
|
|
'-x[ignore whitespace and comments]' \
|
|
|
|
'1::pattern:' \
|
|
|
|
'2::replacement:' \
|
|
|
|
'3::files:_files' && return 0
|
|
|
|
|