From 577e5a2a49147dfe237c67f0ce5e43cd095cf3c5 Mon Sep 17 00:00:00 2001 From: JuanPablo Date: Tue, 2 Aug 2011 14:21:45 -0400 Subject: [PATCH] zsh : fori --- snippets/zsh.snippets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snippets/zsh.snippets b/snippets/zsh.snippets index 7aee05b..367a01c 100644 --- a/snippets/zsh.snippets +++ b/snippets/zsh.snippets @@ -19,6 +19,10 @@ snippet for for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do ${3:# statements} done +snippet fori + for ${1:needle} in ${2:haystack} ; do + ${3:#statements} + done snippet fore for ${1:item} in ${2:list}; do ${3:# statements}