1
0
Fork 0

gitignore.io correction

This commit is contained in:
Starbeamrainbowlabs 2016-05-16 21:04:05 +01:00
parent 3e290ad7a8
commit 5fc64445bb
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ transfer() { if [ $# -eq 0 ]; then echo "No arguments specified. Usage:\necho tr
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/\$@ ;}
function gitignore() { curl -L -s https://www.gitignore.io/api/$@; }
# Get / Set clipboard contents
alias setclip='xclip -selection c'