diff --git a/stow/.config/fish/functions/0x0.fish b/stow/.config/fish/functions/0x0.fish deleted file mode 100644 index c45280c..0000000 --- a/stow/.config/fish/functions/0x0.fish +++ /dev/null @@ -1,9 +0,0 @@ -function 0x0 --description 'Uploads a file or folder to 0x0.st' - if test -d "$argv" - set TMPFILE "$(mktemp --suffix '.tar')" - tar cvf "$TMPFILE" "$argv" - curl -F file="@$TMPFILE" -F expires=24 https://0x0.st - else - curl -F file=@"$argv" -F expires=24 https://0x0.st - end -end diff --git a/stow/.zshrc b/stow/.zshrc index cb24e72..21df395 100644 --- a/stow/.zshrc +++ b/stow/.zshrc @@ -71,28 +71,6 @@ export PATH="$PATH:$GOPATH/bin" export EDITOR="nvim" -# functions -func calc() { - # why isn't this in bash by default - # - if command -v python3 > /dev/null; then - python3 -c "print($1)" - else - echo "python3 needs to be installed for this to work!" - fi -} - -func 0x0() { - if [ -d "$1" ]; - then - TMPFILE="$(mktemp)" - tar cf "$TMPFILE" "$1" - curl -F file=@$TMPFILE -F expires=24 https://0x0.st - else - curl -F file=@$1 -F expires=24 https://0x0.st - fi -} - # plugins plugindir="$HOME/.local/share/zsh_plug" func plugInstall() {