dotfiles-x11547543a
add alias to open file, modify upfile script to use vern null point server instead
+3 −1
2 files changed
- M .config/shell/aliasrc +1 −0
- M .local/bin/upfile +2 −1
| @@ -46,6 +46,7 @@ alias \ | |||
| 46 | 46 | ec() {find ~/.config -type f | fzf | xargs -r $EDITOR ;} | |
| 47 | 47 | es() { cd ~/.local/bin; $EDITOR $(fzf) ;} | |
| 48 | 48 | ef() {fzf | xargs -r -I % $EDITOR % ;} | |
| 49 | + | of() {fzf | xargs -r -I % xdg-open % ; } | |
| 49 | 50 | colors() { | |
| 50 | 51 | for COLOR in {1..255}; do | |
| 51 | 52 | echo -en "\e[38;5;${COLOR}m" | |
| @@ -8,5 +8,6 @@ fi | |||
| 8 | 8 | ||
| 9 | 9 | [ -z "$file" ] && exit | |
| 10 | 10 | ||
| 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 | |
| 12 | 13 | notify-send "The url has been copied to your clipboard. $(xclip -sel c -o)" | |