Add cat function documentation

pull/476/head
Miguel Morales 2015-05-12 16:36:07 -05:00
parent 3f98e953cd
commit 6b1789e385
1 changed files with 3 additions and 0 deletions

View File

@ -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";