Krolyxon
Commit 547543a

Branches

Refs →

dotfiles-x11547543a

add alias to open file, modify upfile script to use vern null point server instead

Author
krolxon
Date
2025-05-17 23:12 +0530
Parent
f14e30a
Commit
547543aef6e8e472a9b1613d4c5f2ce5037b85fa

+3 −1

2 files changed

  1. M .config/shell/aliasrc +1 −0
  2. M .local/bin/upfile +2 −1
M .config/shell/aliasrc View
@@ -46,6 +46,7 @@ alias \
4646 ec() {find ~/.config -type f | fzf | xargs -r $EDITOR ;}
4747 es() { cd ~/.local/bin; $EDITOR $(fzf) ;}
4848 ef() {fzf | xargs -r -I % $EDITOR % ;}
49+of() {fzf | xargs -r -I % xdg-open % ; }
4950 colors() {
5051 for COLOR in {1..255}; do
5152 echo -en "\e[38;5;${COLOR}m"
M .local/bin/upfile View
@@ -8,5 +8,6 @@ fi
88
99 [ -z "$file" ] && exit
1010
11−curl -F"file=@$file" 0x0.st | xclip -sel c
11+# curl -F"file=@$file" 0x0.st | xclip -sel c
12+curl -F"file=@$file" 0.vern.cc | xclip -sel c
1213 notify-send "The url has been copied to your clipboard. $(xclip -sel c -o)"