I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
I think maybe you could use git check-ignore * instead of reaching for the local .gitignore file, because then it would work in subdirectories as well as the project root. Something like this works for me:
It's pronounced Diane. I do data architecture, operations, and backend development. In my spare time I maintain Massive.js, a data mapper for Node.js and PostgreSQL.
I think maybe you could use
git check-ignore *
instead of reaching for the local.gitignore
file, because then it would work in subdirectories as well as the project root. Something like this works for me:I dug into this because your alias wouldn't work for me on my Mac (I have to use Macs at work...) and I couldn't quite figure out why.
Things I've learnt from your post include:
&
as a separatorprintf
withxargs
tree
can take coloursNeat!
I didn't know about
git check-ignore
! That makes this a lot simpler :)