From: martin f. krafft Date: Wed, 11 Feb 2009 06:04:57 +0000 (+0100) Subject: use - for stdin X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/87d00e8f51fc7f05e28ee23d097b568e4af2a3a2?hp=0837f5af78b276ac2d7a486f79f5f18334842107 use - for stdin --- diff --git a/.zsh/func/p b/.zsh/func/p index 2b167bc..fcec59e 100755 --- a/.zsh/func/p +++ b/.zsh/func/p @@ -19,7 +19,7 @@ PERMATAG=$USER PB=http://1t2.us PBIT="pastebinit -b $PB -a $USER" -FILE=/dev/stdin +FILE=- [[ -n "$1" ]] && FILE="$1" eval $PBIT -i $FILE