From 547543aef6e8e472a9b1613d4c5f2ce5037b85fa Mon Sep 17 00:00:00 2001 From: krolxon Date: Sat, 17 May 2025 23:12:13 +0530 Subject: [PATCH] add alias to open file, modify upfile script to use vern null point server instead --- .config/shell/aliasrc | 1 + .local/bin/upfile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index fcfe922..61f9094 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -46,6 +46,7 @@ alias \ ec() {find ~/.config -type f | fzf | xargs -r $EDITOR ;} es() { cd ~/.local/bin; $EDITOR $(fzf) ;} ef() {fzf | xargs -r -I % $EDITOR % ;} +of() {fzf | xargs -r -I % xdg-open % ; } colors() { for COLOR in {1..255}; do echo -en "\e[38;5;${COLOR}m" diff --git a/.local/bin/upfile b/.local/bin/upfile index c373eb0..78c0321 100755 --- a/.local/bin/upfile +++ b/.local/bin/upfile @@ -8,5 +8,6 @@ fi [ -z "$file" ] && exit -curl -F"file=@$file" 0x0.st | xclip -sel c +# curl -F"file=@$file" 0x0.st | xclip -sel c +curl -F"file=@$file" 0.vern.cc | xclip -sel c notify-send "The url has been copied to your clipboard. $(xclip -sel c -o)"