From: Armaan Bhojwani Date: Thu, 6 May 2021 00:30:21 +0000 (-0400) Subject: zsh: add pubup script X-Git-Url: https://git.armaanb.net/?p=config.org.git;a=commitdiff_plain;h=5159fca3325f4b15d73283bded9abc5c26a9e314 zsh: add pubup script --- 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