summaryrefslogtreecommitdiff
path: root/zshfunc
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2012-01-02 11:53:31 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2012-01-02 11:53:31 +0000
commit3921577f26c57ecf852960fcc85db0b9bbb75a6d (patch)
tree1d30df1cd85018f0c7cd01a4a8e3953a62961741 /zshfunc
parent9aece5e284f302765b7e9afcddbf63ae3ba299e2 (diff)
add snap-farmpath
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@493 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'zshfunc')
-rw-r--r--zshfunc/snap-farmpath10
1 files changed, 10 insertions, 0 deletions
diff --git a/zshfunc/snap-farmpath b/zshfunc/snap-farmpath
new file mode 100644
index 0000000..afba8df
--- /dev/null
+++ b/zshfunc/snap-farmpath
@@ -0,0 +1,10 @@
+## vim:ft=zsh:foldmethod=marker
+
+if [ -z "$1" ]; then
+ sed 's#^\(..\)\(..\).*#/srv/snapshot.debian.org/farm/\1/\2/&#'
+else
+ while [ -n "$1" ]; do
+ echo "$1" | sed 's#^\(..\)\(..\).*#/srv/snapshot.debian.org/farm/\1/\2/&#'
+ shift
+ done
+fi