Skip to content

Instantly share code, notes, and snippets.

View JamesDevlin5's full-sized avatar

James Devlin JamesDevlin5

View GitHub Profile
@JamesDevlin5
JamesDevlin5 / gitignore.sh
Created August 25, 2021 22:04
API wrapper, which facilitates creation of gitignore files (with fzf)
#!/usr/bin/env sh
TARGET=$(curl -sL https://gitignore.io/api/list | tr ',' '\n' | fzf --multi --cycle --border | tr '\n' ',' | sed 's/,$//')
if [ -z "$TARGET" ]
then
echo "Did not select any gitignore templates. Exiting..."
exit 1
fi