Add cat function documentation
This commit is contained in:
@@ -14,6 +14,9 @@ CAT_BIN=$(which cat)
|
|||||||
# replace the cat binary for a pygmentize if possible
|
# replace the cat binary for a pygmentize if possible
|
||||||
cat()
|
cat()
|
||||||
{
|
{
|
||||||
|
about 'runs either pygmentize or cat on each file passed in'
|
||||||
|
param '*: files to concatenate (as normally passed to cat'
|
||||||
|
example 'cat mysite/manage.py dir/text-file.txt'
|
||||||
for var;
|
for var;
|
||||||
do
|
do
|
||||||
pygmentize "$var" 2>/dev/null || "$CAT_BIN" "$var";
|
pygmentize "$var" 2>/dev/null || "$CAT_BIN" "$var";
|
||||||
|
|||||||
Reference in New Issue
Block a user