Sunday 23 August 2009

.bashrc for pythonistas

It's a great trick for creating a clean copy of a directory of python stuff, but I got sick of typing

~$ rsync -av --exclude="*~" --exclude="*.pyc" ~/tests/ ~/tested/

so I decided to add an alias to ~/.bashrc

alias rsync='rsync --exclude="*~" --exclude="*.pyc"'

works fine.

No comments: