-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James G. Sack (jim) wrote:
> Bash functions are the way to get alias behavior but with arguments.
> Unfortunately, I have to think harder than I like in order to remember
> the syntax for bash function definitions. <sigh>
My favorite bash function which I have in my .bashrc:
function cd {
builtin cd "$@"
if [ -d .svn -a -r .svn ]
then
DIFFS=`svn status| egrep "^M"`
if [ ! -z "$DIFFS" ]
then
echo "This directory contains uncommited changes."
fi
fi
}
I have a habit of editing config files which are under revision control
and forgetting to check them in. This helps with that.
- --
Tracy R Reed Read my blog at http://ultraviolet.org
Key fingerprint = D4A8 4860 535C ABF8 BA97 25A6 F4F2 1829 9615 02AD
Non-GPG signed mail gets read only if I can find it among the spam.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFGajL69PIYKZYVAq0RAtPoAKCTeX+eqp6thqZLMCTOIUyIm3S8pgCdHWpJ
/yXlCgF7yWgpHWdmDwNZMAI=
=JTZJ
-----END PGP SIGNATURE-----
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list