diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-01-12 15:26:18 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-01-12 15:26:18 +0100 |
commit | 6f4245eb390970a0ef4aba79fbc84e173239874d (patch) | |
tree | be6d14c022e7f8fb61aad7bf51700f601c33d5ac /bash | |
parent | f215d3a620aae2f5759da83218fba57a104fbe0c (diff) |
bash: split up(s) into their own executables
Makes them easier to call from scripts.
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/bash/bashrc b/bash/bashrc index 3c71d56..18364ac 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -53,30 +53,6 @@ cu() cd "${dir}" } -# ups.khirnov.net uploader -ups() { - if [ "$1" ]; then - fname=$(basename "$1") - else - fname="-" - fi - - url=$(curl -sS -E ~/.local/var/up/cert --data-binary "@${fname}" "https://ups.khirnov.net/${fname}") - [ "${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}" -} - # define the prompt . ~/.config/bash/prompt PS1=$(__prompt_func) |