From 5159fca3325f4b15d73283bded9abc5c26a9e314 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Wed, 5 May 2021 20:30:21 -0400 Subject: [PATCH] zsh: add pubup script --- config.org | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config.org b/config.org index f4cd24a..57b56c5 100644 --- a/config.org +++ b/config.org @@ -970,6 +970,13 @@ Right now, I'm only using fast-syntax-highlighting. It's a really nice visual ad echo $user | nc "$host" 79 -N } #+end_src +**** Upload to ftp.armaanb.net +#+begin_src shell :tangle ~/.config/zsh/zshrc + pubup() { + rsync "$1" "root@armaanb.net:/var/ftp/pub/${2}" + echo "https://ftp.armaanb.net/pub/"$(basename "$1") | tee /dev/tty | xclip -sel c + } +#+end_src *** Aliases **** SSH #+begin_src shell :tangle ~/.config/zsh/zshrc -- 2.39.2