1 rizwank 1.1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5 <title>Rizwan Kassim - *Insert title here*</title>
6 <meta name="ICBM" content="34.49856, -117.27522">
7 <meta name="DC.title" content="Rizwan Kassim - This American Life">
8 <!-- Rizwan Kassim's Public Log, Code Resources, and plenty more -->
9 <META NAME="Title" CONTENT="Rizwan Kassim's Public Log at Geekymedia">
10 <META NAME="Description" CONTENT="Personal site of Rizwan Kassim, fan of Magic the Gathering MTG, UCLA, Mike and Ben, Comedyworld, backpacking, Broadcast Engineering">
11 <META NAME="author" CONTENT="Rizwan Kassim">
12 <META NAME="distribution" CONTENT="Global">
13 <META NAME="revisit-after" CONTENT="1 days">
14 <META NAME="copyright" CONTENT="Rizwan Kassim">
15 <META NAME="robots" CONTENT="FOLLOW,INDEX">
16 <META NAME="keywords" CONTENT="Personal site of Rizwan Kassim, fan of Magic the Gathering MTG, UCLA, Mike and Ben, Comedyworld, backpacking, Broadcast Engineering">
17 <link rel="stylesheet" href="styles-site.css" type="text/css" />
18 </head>
19 <body>
20 <h2>Rizwan Kassim - Pathabbr 0.3 - Includes support for Cygwin</h2>
21 <div class="intro">
22 rizwank 1.1 Pathabbr doesn't compile on <a href="http://www.cygwin.com">cygwin32</a> due to glibc not being <a href="http://cygwin.com/faq/faq_toc.html#TOC91">completely</a> implemented in cygwin.
23 I've provided 0.3 with a modified Makefile and codebase that implements the missing functions.<br>
24 Pathabbr 0.3 should be functionally equivalent to 0.2.<br>
25 <a href="http://trific.ath.cx/software/pathabbr/">Original version</a>
26 </div>
27
28 <h3>Download</h3>
29 <p><a href="http://www.geekymedia.com/pathabbr-0.3.tar.bz2">pathabbr-0.3.tar.bz2</a> (12.3 kB)</p>
30
31 <h3>Description</h3>
32 <p>Pathabbr abbreviates paths to given length using ellipsis.</p>
33
34 <p>Pathabbr is primarily intended for
35 <a href="http://trific.ath.cx//resources/bash/#prompt">shortening bash prompt</a>.
36 It's however quite general and everything, including the string used as
37 ellipsis and the set of rules defining good places to break the path at, can
38 be customized. Thus it can be used to abbreviate other path types than
39 file/directory names.</p>
40
41 <p>Some simple examples:</p>
42 <pre>
43 rizwank 1.1 $ cd /usr/X11R6/lib/X11/xkb/geometry/sgi
44 $ pwd | pathabbr 20
45 /usr/../geometry/sgi
46 $ pwd | pathabbr 30
47 /usr..lib/X11/xkb/geometry/sgi
48 $ pwd | pathabbr -r 0 30
49 /usr/X11R6/lib/../geometry/sgi
50 $ pwd | pathabbr -r 2.0 30
51 ..1R6/lib/X11/xkb/geometry/sgi
52 $ pwd | pathabbr -e ">>>" 30
53 /usr/X11R6>>>/xkb/geometry/sgi
54 </pre>
55
56 <h3>Changes in this version.</h3>
57 List of Changes:
58 <ul>
59 <li>Included getline.c by Jan Brittenson
60 <li>Included stpncpy.c by Kaveh R. Ghazi
61 <li>Modified Makefile and pathabbr.c to include above
62 </ul>
63
64 rizwank 1.1
65 <h2>Copying</h2>
66 <p>Copyright © 2002 Yeti (David Necas) <yeti at physics dot muni dot cz>.</p>
67 <p>Copyright © 2005 Rizwan Kassim <rizwank at geekymedia dot com>.</p>
68 <p>Pathabbr is free software; you can redistribute it and/or modify it under the terms of the
69 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a> as published by the Free Software Foundation;
70 either version 2 of the License, or (at your option) any later version. For full license text see file <code class="fnm">COPYING</code> included in the source tarball.</p>
|