Add updated bash startup files.

This commit is contained in:
Darren 'Tadgy' Austin 2024-08-25 20:36:06 +01:00
commit ee8f5f528a
11 changed files with 633 additions and 593 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-
}