Tootfinder

Opt-in global Mastodon full text search. Join the index!

@cark@social.tchncs.de
2025-10-19 19:41:41

I frequently create a new #git :git: repo and it always bothers me to manually create .gitignore file myself.
Today I automated this with the following lines in my .bashrc
# define the content in an env var
GIT_IGNR_CNTNT=$(cat <<-EOF
*.log
tmp_*
# put other patterns here
EOF
)
# function to write env var to file
git_ignore_creation(){…