diff options
-rw-r--r-- | dotfiles/profile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dotfiles/profile b/dotfiles/profile index 749f360..17b169e 100644 --- a/dotfiles/profile +++ b/dotfiles/profile @@ -40,6 +40,18 @@ ups() { [ "${url}" ] && echo "${url}" } +# up.khirnov.net 0x0 instance +up() { + if [ "$1" ]; then + fname=$(basename "$1") + else + fname="-" + fi + + url=$(curl -sS -E ~/.local/var/up/cert -F "file=@${fname}" "https://up.khirnov.net/") + [ "${url}" ] && echo "${url}" +} + # TODO: umask? # source the machine-local configuration |