From 47aff11c0a914d6c9465dd4542cf0f6acea3b5f7 Mon Sep 17 00:00:00 2001 From: Flinner Yuu Date: Mon, 11 Apr 2022 22:35:42 +0300 Subject: [PATCH] feat(bin): 0x0 now echos url --- zsh/.zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 7339e38..5b22546 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -158,7 +158,9 @@ ip.me () { curl eth0.me ; curl ipv6.icanhazip.com } # or ip.me [ ! -z "$1" ] && file=$1 || file=$(find . -maxdepth 2 -type f | fzf) [ -z "$file" ] && return echo "file=@$file" - curl -F "file=@$file" 0x0.st | xclip -sel clip + _URL=$(curl -F "file=@$file" 0x0.st) + echo "$_URL" | xclip -sel clip + echo "$_URL" } # curl with cache