1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-06-14 20:41:44 +00:00

Improved Perl find and replace functions.

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

View File

@ -0,0 +1,11 @@
#compdef prep
#autoload
_arguments \
'-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::files:_files' && return 0

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