From f3cbf073b8f7f63bc0f3f681726257178c985445 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 13 May 2017 21:13:36 +0300 Subject: [PATCH] - Added bfg shell function to download and run the bfg jar. --- .bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bashrc b/.bashrc index ffae623..65cd886 100644 --- a/.bashrc +++ b/.bashrc @@ -117,5 +117,10 @@ sync_comics () { rsync --recursive --compress --progress --exclude "*.part" "$last_month" "$this_month" "$HOME/Downloads/Comics/" } +bfg () { + [ -f "$HOME/Downloads/bfg.jar" ] || curl 'https://search.maven.org/remote_content?g=com.madgag&a=bfg&v=LATEST' -sLo "$HOME/Downloads/bfg.jar" + java -jar "$HOME/Downloads/bfg.jar" "$@" +} + # shellcheck disable=SC1090 . "$HOME/Documents/Shore/bundle_certs/bundle_certs" -- GitLab