cdir

Summary

cdir (or "cvs-dir") is a wrapper for the standard Unix "ls -la" directory listing, which folds in some automatically detected CVS metadata such as revision, status, sticky branch, etc.

Usage

Normal "ls -la" directory:
    mzieg $ ls -la
    total 120
    drwxrwxr-x    3 mzieg    oa           4096 Dec  6 18:31 .
    drwxrwxr-x    9 mzieg    oa           4096 Nov 25 18:20 ..
    -rw-------    1 mzieg    oa          16384 Dec  9 10:08 .cdir.swp
    -rwxrwxr-x    1 mzieg    oa           6424 Dec  6 18:32 cdir
    drwxrwxr-x    2 mzieg    oa           4096 Dec  6 18:32 CVS
    -rwxrwxr-x    1 mzieg    oa           3163 Aug 28 14:14 cvsDiffIt.sh
    -rwxrwxr-x    1 mzieg    oa           4317 Sep 16 11:04 DeWordHtml.pl
    -rwxrwxr-x    1 mzieg    oa           3937 Dec  6 15:32 PopulateFlowcharts.pl
Same directory, different command:
    mzieg $ cdir
    drwxrwxr-x   mzieg  oa                      4096 Dec  6 18:31 .
    drwxrwxr-x   mzieg  oa                      4096 Nov 25 18:20 ..
    -rw------- ? mzieg  oa                     16384 Dec  9 10:08 .cdir.swp
    -rwxrwxr-x   mzieg  oa         Up-to-date   6424 Dec  6 18:32 cdir
    drwxrwxr-x   mzieg  oa                      4096 Dec  6 18:32 CVS
    -rwxrwxr-x U 1.1    1.2       Needs Patch   3163 Aug 28 14:14 cvsDiffIt.sh
    -rwxrwxr-x   mzieg  oa         Up-to-date   4317 Sep 16 11:04 DeWordHtml.pl
    -rwxrwxr-x M 1.2    1.2  Locally Modified   3937 Dec  6 15:32 PopulateFlowcharts.pl

Download

cdir.pl

Author

Mark Zieg <mark@zieg.com>