Add gitattributesdb support. Update bash startup files. Small changes to other files.

This commit is contained in:
Darren 'Tadgy' Austin 2024-08-25 21:20:56 +01:00
commit 93e8fe1e3f
22 changed files with 742 additions and 620 deletions

11
.bashrc.d/imagebin Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash - not strictly necessary, but helps nano with syntax highlighting.
imagebin() {
# Throw an image file into imagebin.
[[ -z "$1" ]] || [[ ! -e "$1" ]] && {
printf "%s: %s\\n" "Usage" "${FUNCNAME[0]} <filename>" >&2
return 1
}
curl -F file="@$1" https://imagebin.ca/upload.php | grep '^url:' | cut -d: -f2-
}