zsh/rc/svnscan.rc

13 lines
361 B
Plaintext

if which svn > /dev/null; then
if [ -z $NOSVN ]; then
echo "Current rev :`LANG=C svn info "$ZDOTDIR" | grep Revision | cut -d' ' -f 2`"
if [ -z $NOSVNSCAN ]; then
MODFILE=`svn status "$ZDOTDIR" | grep -v " L"`
if [ `echo -n "$MODFILE" | wc -c` -gt 2 ]; then
echo "Modified Files :"
echo "$MODFILE"
fi
fi
fi
fi