Hint about using a bash function.

This commit is contained in:
Julien Palard 2018-05-13 16:39:22 +02:00
parent 63fe8deaa9
commit b63a727517
1 changed files with 7 additions and 1 deletions

View File

@ -71,7 +71,13 @@
<button class="btn" type="submit">{% trans 'Paste' %}</button>
<input type="hidden" id="max_characters" value="{{ max_characters }}">
</form>
<div class="alert alert-info" role="alert">You can also use: <pre>curl {{ absolute_index_url }} -Fpython=@hello.py</pre></div>
<div class="alert alert-info" role="alert">You can also use:
<pre>curl {{ absolute_index_url }} -Fpython=@hello.py</pre>
(attribute name is used for syntax highlighting, and shortcuts like "py" are allowed, see Language dropdown for language list.)
<br /><br />
You may even use a bash function:
<pre>wyz() { curl {{ absolute_index_url }} -Fpython=@$1 }</pre>
</div>
{% endblock %}
{% block javascript %}
{% if PASTE.show_char_left %}