diff options
Diffstat (limited to 'dotfiles/profile')
-rw-r--r-- | dotfiles/profile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dotfiles/profile b/dotfiles/profile index 3be0749..c218116 100644 --- a/dotfiles/profile +++ b/dotfiles/profile @@ -28,6 +28,13 @@ if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi +# ups.khirnov.net uploader +ups() { + fname=$(basename "$1") + url=$(curl -sS -E ~/.local/var/up/cert --data-binary "@$1" "https://ups.khirnov.net/${fname}") + [ "${url}" ] && echo "${url}" +} + # TODO: umask? # source the machine-local configuration |