shell: remove 0x0 functions because broken
This commit is contained in:
parent
4ac3953885
commit
3d7a4ba0c2
2 changed files with 0 additions and 31 deletions
|
|
@ -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
|
|
||||||
22
stow/.zshrc
22
stow/.zshrc
|
|
@ -71,28 +71,6 @@ export PATH="$PATH:$GOPATH/bin"
|
||||||
|
|
||||||
export EDITOR="nvim"
|
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
|
# plugins
|
||||||
plugindir="$HOME/.local/share/zsh_plug"
|
plugindir="$HOME/.local/share/zsh_plug"
|
||||||
func plugInstall() {
|
func plugInstall() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue