5 # function to publish to a pastebin (using pastebinit)
7 # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
8 # Released under the terms of the Artistic Licence 2.0
10 # Source repository: git://git.madduck.net/etc/zsh.git
13 if [[ $# -gt 1 ]]; then
14 echo E: only one argument can be passed. >&2
20 PBIT="pastebinit -b $PB -a $USER"
23 [[ -n "$1" ]] && FILE="$1"
25 eval $PBIT -i $FILE | sed -e s@/view/@/raw/@