Add cat function documentation
parent
3f98e953cd
commit
6b1789e385
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue