Improved Perl find and replace functions.

This commit is contained in:
Sorin Ionescu 2012-01-27 21:03:01 -05:00
commit 054670cee8
5 changed files with 111 additions and 16 deletions

View file

@ -0,0 +1,13 @@
#compdef psub
#autoload
_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