Notice This is a beta feature offered by Google. Also this is automatic translation, which means the results are often inacurate and/or hilarious. Enjoy.

ARCHIVES / RSS
Blog

Yo.. chill.

h3  ~  19 Jul 2007, 21:46  –  post a comment

At work I use intensively SVN with my coworker gnuvince. We also use MSN to notify each other of updates we've made. With time our communications became more and more pragmatics, to the point where we'd only say to each other "up", of course referring to the "svn up" command.

Except one day. This day his fingers were offset, he typed "yo". This incident led to a inside joke, which eventually led to those two little scripts.

I found myself typing the same commands over and over, so why not just put them in a bash script ?

Should have done it long time ago. Ok it could be more advanced, but it works and suits my basic needs and save me some time and typing.

Yo

#!/bin/bash
svn up
find . -iname '*.pyc' -type f -print0 | xargs -0 /bin/rm -f
svn log -rHEAD
svn status

Chill

#!/bin/bash
yo
svn commit
I placed those scripts my */usr/local/bin* folder, so when I want to do svn up I just type *yo* and when I want to commit I just type *chill* whatever is my *CWD*.

Instant advantages

  • Less typing
  • Compiled python files never makes their way to the repository
  • When I do svn status pyc files don't show up in the list
  • Keeps me aware of the last change

post a comment Comments

no comments :|

Copyrighted stuff .. u know.