On Sep 15, 2014, at 4:34 AM, Lucas Alvares Gomes <[email protected]> wrote:
> So, although I like the fix proposed and I would +1 that idea, I'm
> also not very concerned if most of the people don't want that. Because
> as you just said we can fix it locally easily. I didn't set it to my
> .local but the way I do nowadays is to have a small bash function in
> my .bashrc to delete the pyc files from the current directory:
>
> function delpyc () {
> find . -name "*.pyc" -exec rm -rf {} \;
> }
>
> So I just invoke it when needed :)
fyi there is a -delete option to find which is probably a little safer then
exec with a rm -rf. Also it is really convienient to do this as a git alias so
it happens automatically when switching branches:
In ~/.gitconfig:
[alias]
cc = !"TOP=$(git rev-parse --show-toplevel) find $TOP -name '*.pyc'
-delete; git-checkout”
now you can git cc <branch> instead of git checkout <branch>.
Vish
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ OpenStack-dev mailing list [email protected] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
