diff options
Diffstat (limited to 'zshfunc/snap-farmpath')
-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 |