Commit 01a6736b authored by Paul Joannon's avatar Paul Joannon Committed by Bruno Pinto

change indentation from 4 to 2 spaces

parent 4ef7561c
...@@ -4,21 +4,21 @@ ...@@ -4,21 +4,21 @@
# Based on oh-my-zsh's sprunge plugin # Based on oh-my-zsh's sprunge plugin
function sprunge function sprunge
if isatty stdin if isatty stdin
if [ (count $argv) -gt 0 ] if [ (count $argv) -gt 0 ]
if [ -f $argv ] if [ -f $argv ]
cat $argv cat $argv
else else
echo $argv echo $argv
end | curl -F 'sprunge=<-' http://sprunge.us end | curl -F 'sprunge=<-' http://sprunge.us
else else
echo -e "Usage: echo -e "Usage:
* sprunge < README.md * sprunge < README.md
* sprunge README.md * sprunge README.md
* cat README.md | sprunge * cat README.md | sprunge
* sprunge "I \<3 paulloz"" * sprunge "I \<3 paulloz""
end
else
curl -F 'sprunge=<-' http://sprunge.us
end end
else
curl -F 'sprunge=<-' http://sprunge.us
end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment