mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Remove support for 'sprunge "blah blah posted text"'
This commit is contained in:
parent
3f3da1eb47
commit
d20f46ef12
1 changed files with 3 additions and 6 deletions
|
|
@ -14,7 +14,6 @@ DESCRIPTION
|
||||||
|
|
||||||
USAGE
|
USAGE
|
||||||
$0 filename.txt
|
$0 filename.txt
|
||||||
$0 text string
|
|
||||||
$0 < filename.txt
|
$0 < filename.txt
|
||||||
piped_data | $0
|
piped_data | $0
|
||||||
|
|
||||||
|
|
@ -24,7 +23,7 @@ NOTES
|
||||||
$0 can accept piped data, STDIN redirection [<filename.txt], text strings following the command as arguments, or filenames as arguments. Only one of these methods can be used at a time, so please see the note on precedence. Also, note that using a pipe or STDIN redirection will treat tabs as spaces, or disregard them entirely (if they appear at the beginning of a line). So I suggest using a filename as an argument if tabs are important either to the function or readability of the code.
|
$0 can accept piped data, STDIN redirection [<filename.txt], text strings following the command as arguments, or filenames as arguments. Only one of these methods can be used at a time, so please see the note on precedence. Also, note that using a pipe or STDIN redirection will treat tabs as spaces, or disregard them entirely (if they appear at the beginning of a line). So I suggest using a filename as an argument if tabs are important either to the function or readability of the code.
|
||||||
|
|
||||||
* PRECEDENCE *
|
* PRECEDENCE *
|
||||||
STDIN redirection has precedence, then piped input, then a filename as an argument, and finally text strings as an arguments.
|
STDIN redirection has precedence, then piped input, then a filename as an argument.
|
||||||
|
|
||||||
EXAMPLE:
|
EXAMPLE:
|
||||||
echo piped | "$0" arguments.txt < stdin_redirection.txt
|
echo piped | "$0" arguments.txt < stdin_redirection.txt
|
||||||
|
|
@ -49,10 +48,8 @@ sprunge() {
|
||||||
print(get_lexer_for_filename('$*').aliases[0])
|
print(get_lexer_for_filename('$*').aliases[0])
|
||||||
except:
|
except:
|
||||||
print('text')" | python)
|
print('text')" | python)
|
||||||
cat "$*"
|
cat "$*" | curl -F 'sprunge=<-' http://sprunge.us
|
||||||
else
|
fi
|
||||||
echo "$*"
|
|
||||||
fi | curl -F 'sprunge=<-' http://sprunge.us
|
|
||||||
else
|
else
|
||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue