diff options
author | Peter Palfrader <peter@palfrader.org> | 2012-01-02 11:53:31 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2012-01-02 11:53:31 +0000 |
commit | 3921577f26c57ecf852960fcc85db0b9bbb75a6d (patch) | |
tree | 1d30df1cd85018f0c7cd01a4a8e3953a62961741 /zshfunc | |
parent | 9aece5e284f302765b7e9afcddbf63ae3ba299e2 (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-farmpath | 10 |
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 |