Skip to content

Instantly share code, notes, and snippets.

View fpedroza's full-sized avatar

Frank Pedroza fpedroza

  • Salt Lake City, Utah, USA
View GitHub Profile
@judy2k
judy2k / gitignore
Last active February 1, 2022 11:14
A script to manage a .gitignore file
#!/bin/bash
# To add two items to the current .gitignore file:
# gitignore '*.swp' bin
#
# To sort and de-dupe the current .gitignore file:
# gitignore
# Append each argument to its own line:
for item in "$@"; do
echo "$item" >> .gitignore;