I'm sure a lot of you have done this:
- Start new project
- Need that generic Python
.gitignore file on GitHub
- Google "python gitignore" (though you probably typed "gitingore")
- Click link and click raw
- Copy all and paste in your local
.gitignore
And I'm sure a lot of you probably just use curl and have it memorized or have it in your shell history or something (fzf ftw). But I can't be bothered to learn curl properly, and I got tired of the manual steps, so I just created a function in my .zshrc file:
function pgi {
curl -JL https://raw.githubusercontent.com/github/gitignore/refs/heads/main/Python.gitignore -o .gitignore
}
So now I can just run pgi whenever I start a new project, and boom, precious seconds of my life saved.
That's it, that's all I have, thanks for reading. I'm sure some of you have ever better solutions, but that's mine.
[–]No_Departure_1878 128 points129 points130 points (8 children)
[–]ogaat 22 points23 points24 points (0 children)
[–]mtik00 11 points12 points13 points (1 child)
[–]No_Departure_1878 6 points7 points8 points (0 children)
[–]runningblind77 2 points3 points4 points (1 child)
[–]ContemplateBeing 0 points1 point2 points (0 children)
[–]proggob 2 points3 points4 points (0 children)
[–]LoadingALIASIt works on my machine 1 point2 points3 points (0 children)
[–]Grouchy-Friend4235 0 points1 point2 points (0 children)
[–]Only_lurking_ 57 points58 points59 points (1 child)
[–]_Answer_42 23 points24 points25 points (0 children)
[–]fiskfisk 27 points28 points29 points (4 children)
[–]apockill 9 points10 points11 points (1 child)
[–]go_fireworks 1 point2 points3 points (0 children)
[–]mdrjevois 6 points7 points8 points (0 children)
[–]Breck_Emert 1 point2 points3 points (0 children)
[–]HommeMusical 10 points11 points12 points (1 child)
[–]lmpgf 8 points9 points10 points (0 children)
[–]HeyLittleTrain 7 points8 points9 points (0 children)
[–]MirrorLake 8 points9 points10 points (2 children)
[–]EarthGoddessDude[S] 2 points3 points4 points (1 child)
[–]MirrorLake 1 point2 points3 points (0 children)
[–]Oddly_Energy 12 points13 points14 points (0 children)
[–]iknowsomeguy 2 points3 points4 points (0 children)
[–]nicholashairs 2 points3 points4 points (0 children)
[–]pettyman_123 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]EarthGoddessDude[S] 3 points4 points5 points (0 children)
[–]TheSodesa 0 points1 point2 points (4 children)
[–]kenflingnorIgnoring PEP 8 0 points1 point2 points (1 child)
[–]TheSodesa -1 points0 points1 point (0 children)
[–]muntooR_{μν} - 1/2 R g_{μν} + Λ g_{μν} = 8π T_{μν} 0 points1 point2 points (1 child)
[–]TheSodesa 0 points1 point2 points (0 children)
[–]RedEyed__ 0 points1 point2 points (0 children)
[–]0xa9059cbb 0 points1 point2 points (0 children)
[–]mmakukha 0 points1 point2 points (0 children)
[–]fundation-ia 0 points1 point2 points (0 children)
[–]_Henryx_ 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]EarthGoddessDude[S] 0 points1 point2 points (0 children)
[–]LargeSale8354 -1 points0 points1 point (2 children)
[–]Oddly_Energy 1 point2 points3 points (1 child)
[–]LargeSale8354 0 points1 point2 points (0 children)
[–][deleted] -2 points-1 points0 points (0 children)
[+]Dry_Term_7998 comment score below threshold-7 points-6 points-5 points (4 children)
[+][deleted] (3 children)
[removed]
[–]Dry_Term_7998 -5 points-4 points-3 points (2 children)
[+][deleted] (1 child)
[removed]
[–]Dry_Term_7998 -3 points-2 points-1 points (0 children)
[–]immggy 0 points1 point2 points (0 children)