mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 16:40:24 +02:00
Updated from list as far as 10376
This commit is contained in:
parent
e025336f2f
commit
4852545255
31 changed files with 13782 additions and 5610 deletions
|
@ -1,4 +1,4 @@
|
|||
# $Id: is-at-least,v 1.1 2000/02/11 19:46:46 akr Exp $ -*- shell-script -*-
|
||||
# $Id: is-at-least,v 1.2 2000/04/01 20:49:47 pws Exp $ -*- shell-script -*-
|
||||
#
|
||||
# Test whether $ZSH_VERSION (or some value of your choice, if a second argument
|
||||
# is provided) is greater than or equal to x.y.z-r (in argument one). In fact,
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
# seperated by `--'. For example:
|
||||
#
|
||||
# zrecompile -p \
|
||||
# -r ~/.zshrc -- \
|
||||
# -m ~/.zcompdump -- \
|
||||
# -R ~/.zshrc -- \
|
||||
# -M ~/.zcompdump -- \
|
||||
# ~/zsh/comp.zwc ~/zsh/Completion/*/_* \
|
||||
#
|
||||
# This makes ~/.zshrc be compiled into ~/.zshrc.zwc if that doesn't
|
||||
|
@ -33,8 +33,7 @@
|
|||
# that needed re-compilation could be compiled and non-zero if compilation
|
||||
# for at least one of the files failed.
|
||||
|
||||
emulate -L zsh
|
||||
setopt extendedglob
|
||||
setopt localoptions extendedglob
|
||||
|
||||
local opt check quiet zwc files re file pre ret map tmp mesg pats
|
||||
|
||||
|
@ -68,7 +67,7 @@ if [[ -n $pats ]]; then
|
|||
fi
|
||||
|
||||
files=( ${files:#*(.zwc|~)} )
|
||||
if [[ $files[1] = -[rm] ]]; then
|
||||
if [[ $files[1] = -[RM] ]]; then
|
||||
map=( $files[1] )
|
||||
shift 1 files
|
||||
else
|
||||
|
@ -146,10 +145,10 @@ for zwc; do
|
|||
# See if the wordcode file will be mapped.
|
||||
|
||||
if [[ $files[1] = *\(mapped\)* ]]; then
|
||||
map=-m
|
||||
map=-M
|
||||
mesg='succeeded (old saved)'
|
||||
else
|
||||
map=-r
|
||||
map=-R
|
||||
mesg=succeeded
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue