From 3e290ad7a8bf397cc8efe14a970d6af36401b9b4 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 16 May 2016 21:01:51 +0100 Subject: [PATCH] Added gitignore.io --- .bash_aliases | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index e05b26c..55cd812 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -53,6 +53,9 @@ alias termbin='netcat termbin.com 9999' transfer() { if [ $# -eq 0 ]; then echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; } +# gitignore.io interface +function gitignore() { curl -L -s https://www.gitignore.io/api/\$@ ;} + # Get / Set clipboard contents alias setclip='xclip -selection c' alias getclip='xclip -selection clipboard -o'