Add cat function documentation

This commit is contained in:
Miguel Morales
2015-05-12 16:36:07 -05:00
parent 3f98e953cd
commit 6b1789e385

View File

@@ -14,6 +14,9 @@ CAT_BIN=$(which cat)
# replace the cat binary for a pygmentize if possible
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;
do
pygmentize "$var" 2>/dev/null || "$CAT_BIN" "$var";