mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-06-14 11:51:42 +00:00
Move prep and psub from Perl to Utility
This commit is contained in:
19
modules/utility/functions/_prep
Normal file
19
modules/utility/functions/_prep
Normal file
@ -0,0 +1,19 @@
|
||||
#compdef prep
|
||||
#autoload
|
||||
|
||||
#
|
||||
# Completes prep.
|
||||
#
|
||||
# Authors:
|
||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||
#
|
||||
|
||||
_arguments \
|
||||
'-i[ignore case]' \
|
||||
'-m[^ and $ match the start and the end of a line]' \
|
||||
'-s[. matches newline]' \
|
||||
'-v[invert match]' \
|
||||
'-x[ignore whitespace and comments]' \
|
||||
'1::pattern:' \
|
||||
'2::files:_files' && return 0
|
||||
|
Reference in New Issue
Block a user