summaryrefslogtreecommitdiff
path: root/zshfunc
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2009-05-08 19:25:04 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2009-05-08 19:25:04 +0000
commit762310dfc41827bd19b07fce10a78e2e0f3afeb7 (patch)
tree4b429f05db6ee7f072e4000d7602e86f55ded35c /zshfunc
parentc28d5941c18751112421ac6acb50b1bd81d784f3 (diff)
A couple locals
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@394 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'zshfunc')
-rw-r--r--zshfunc/md1
-rw-r--r--zshfunc/reinit-debian-samhain1
-rw-r--r--zshfunc/reinit-debian-samhain-one2
-rw-r--r--zshfunc/sd1
-rw-r--r--zshfunc/setup-oftc-aliases1
-rw-r--r--zshfunc/upgrade-debian-hosts2
-rw-r--r--zshfunc/upgrade-debian-samhain2
-rw-r--r--zshfunc/upgrade-porter-chroots2
-rw-r--r--zshfunc/upgrade-systems2
9 files changed, 14 insertions, 0 deletions
diff --git a/zshfunc/md b/zshfunc/md
index d14a2b6..79e8fc4 100644
--- a/zshfunc/md
+++ b/zshfunc/md
@@ -1,4 +1,5 @@
## vim:ft=zsh:foldmethod=marker
+local DIR
DIR="$1"
mkdir "$1" && cd "$1"
diff --git a/zshfunc/reinit-debian-samhain b/zshfunc/reinit-debian-samhain
index 5448eaf..b61f85a 100644
--- a/zshfunc/reinit-debian-samhain
+++ b/zshfunc/reinit-debian-samhain
@@ -1,5 +1,6 @@
## vim:ft=zsh:foldmethod=marker
+local i
for i in $DEBHOSTS; do
mkdir hosts/$i 2> /dev/null || continue;
reinit-debian-samhain-one $i
diff --git a/zshfunc/reinit-debian-samhain-one b/zshfunc/reinit-debian-samhain-one
index fd9d3c6..f0f28c0 100644
--- a/zshfunc/reinit-debian-samhain-one
+++ b/zshfunc/reinit-debian-samhain-one
@@ -1,5 +1,7 @@
## vim:ft=zsh:foldmethod=marker
+local host
+
host=$1
if [ "$host" = "${host%%.debian.org}" ]; then
host="$host.debian.org"
diff --git a/zshfunc/sd b/zshfunc/sd
index 9550e63..ec12420 100644
--- a/zshfunc/sd
+++ b/zshfunc/sd
@@ -1,5 +1,6 @@
## vim:ft=zsh:foldmethod=marker
+local fp
fp=$( wget -q -O - http://tor.noreply.org:80/tor/status/authority | \
awk '$1 == "r" && $2 == "'$1'" {printf "%s===", $3}' | \
perl -MMIME::Base64 -e "print unpack(\"H*\", decode_base64(<>)),\"\n\"" )
diff --git a/zshfunc/setup-oftc-aliases b/zshfunc/setup-oftc-aliases
index d7c310e..e1e12a9 100644
--- a/zshfunc/setup-oftc-aliases
+++ b/zshfunc/setup-oftc-aliases
@@ -1,5 +1,6 @@
## vim:ft=zsh:foldmethod=marker
+local name ip
cat "$HOME/.oftc-hosts" | while read name ip; do
alias -g $name-ip="$ip"
alias irssi-$name="irssi --home=$HOME/.irssi-MASTER --connect=OFTC-$name"
diff --git a/zshfunc/upgrade-debian-hosts b/zshfunc/upgrade-debian-hosts
index 5e44588..fcba3a9 100644
--- a/zshfunc/upgrade-debian-hosts
+++ b/zshfunc/upgrade-debian-hosts
@@ -1,5 +1,7 @@
## vim:ft=zsh:foldmethod=marker
+local i
+
cd
for i in $DEBHOSTS; do
mkdir hosts/$i 2>/dev/null || continue;
diff --git a/zshfunc/upgrade-debian-samhain b/zshfunc/upgrade-debian-samhain
index 6267567..9f10c94 100644
--- a/zshfunc/upgrade-debian-samhain
+++ b/zshfunc/upgrade-debian-samhain
@@ -1,5 +1,7 @@
## vim:ft=zsh:foldmethod=marker
+local i
+
for i in $DEBHOSTS; do
mkdir hosts/$i 2> /dev/null || continue;
echo $i
diff --git a/zshfunc/upgrade-porter-chroots b/zshfunc/upgrade-porter-chroots
index 38801e5..5c427ed 100644
--- a/zshfunc/upgrade-porter-chroots
+++ b/zshfunc/upgrade-porter-chroots
@@ -1,5 +1,7 @@
## vim:ft=zsh:foldmethod=marker
+local i
+
cd
for i in $DEBPORTERHOSTS; do
mkdir hosts/chroot-$i 2>/dev/null || continue;
diff --git a/zshfunc/upgrade-systems b/zshfunc/upgrade-systems
index a88a356..07d6ba1 100644
--- a/zshfunc/upgrade-systems
+++ b/zshfunc/upgrade-systems
@@ -1,5 +1,7 @@
## vim:ft=zsh:foldmethod=marker
+local i
+
cd
for i in $HOSTS; do
mkdir hosts/$i 2>/dev/null || continue;