X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/6e36671a068d78165978dd747cef223e7f38d996..e45b0db3d66ca9e041622db3d801d026fb4d3724:/.zsh/func/p?ds=inline diff --git a/.zsh/func/p b/.zsh/func/p index 2b167bc..7a646df 100755 --- a/.zsh/func/p +++ b/.zsh/func/p @@ -4,10 +4,10 @@ # # function to publish to a pastebin (using pastebinit) # -# Copyright © 1994–2008 martin f. krafft +# Copyright © 1994–2017 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # -# Source repository: git://git.madduck.net/etc/zsh.git +# Source repository: http://git.madduck.net/v/etc/zsh.git # if [[ $# -gt 1 ]]; then @@ -16,10 +16,10 @@ if [[ $# -gt 1 ]]; then fi PERMATAG=$USER -PB=http://1t2.us +PB=http://slexy.org PBIT="pastebinit -b $PB -a $USER" -FILE=/dev/stdin +FILE=- [[ -n "$1" ]] && FILE="$1" -eval $PBIT -i $FILE +eval $PBIT -i $FILE | sed -e s@/view/@/raw/@