From: Joseph Nuthalapati Date: Fri, 30 Apr 2021 08:46:12 +0000 (+0530) Subject: Remove .clj suffix for scripts X-Git-Url: https://njoseph.me/gitweb/babashka-scripts.git/commitdiff_plain/57e618f2b43f69a280d1e73cb06cb470bec24e56 Remove .clj suffix for scripts Signed-off-by: Joseph Nuthalapati --- diff --git a/README.md b/README.md index a5c24b4..9986907 100644 --- a/README.md +++ b/README.md @@ -28,14 +28,6 @@ Some useful aliases and functions. ``` sh alias gup="bb -e '(git-pull-rebase-branch)'" alias bbr="rlwrap bb --repl" - -function bb-wrap { - expr="($1 \"$2\")" - bb -e $expr -} - -alias install-deb="bb-wrap install-deb" -alias install-deb-gh="bb-wrap install-deb-from-GitHub" ``` ## Organization diff --git a/ebook-to-audio-book.clj b/ebook-to-audio-book similarity index 97% rename from ebook-to-audio-book.clj rename to ebook-to-audio-book index 48eb115..ec12e96 100755 --- a/ebook-to-audio-book.clj +++ b/ebook-to-audio-book @@ -1,4 +1,5 @@ #! /usr/bin/env bb +; -*- mode: clojure -*- ; A utility to listen to your ebooks using TTS programs diff --git a/git-pull-all.clj b/git-pull-all similarity index 97% rename from git-pull-all.clj rename to git-pull-all index 647db21..6b0de16 100755 --- a/git-pull-all.clj +++ b/git-pull-all @@ -1,4 +1,5 @@ #! /usr/bin/env bb +; -*- mode: clojure -*- ; Runs `git pull` on all the git repositories in a directory diff --git a/install-deb b/install-deb new file mode 100755 index 0000000..2aebfc8 --- /dev/null +++ b/install-deb @@ -0,0 +1,8 @@ +#! /usr/bin/env bb +; -*- mode: clojure -*- + +; A utility to install a deb package from a URL + +(require '[lib :refer [unixify]] '[utils :refer [install-deb]]) + +(unixify install-deb) diff --git a/install-deb-gh b/install-deb-gh new file mode 100755 index 0000000..3aa8ef1 --- /dev/null +++ b/install-deb-gh @@ -0,0 +1,8 @@ +#! /usr/bin/env bb +; -*- mode: clojure -*- + +; A utility to install a deb package from a GitHub URL + +(require '[lib :refer [unixify]] '[utils :refer [install-deb-from-GitHub]]) + +(unixify install-deb-from-GitHub) diff --git a/update-babashka.clj b/update-babashka similarity index 98% rename from update-babashka.clj rename to update-babashka index c122fb4..bf4bb8e 100755 --- a/update-babashka.clj +++ b/update-babashka @@ -1,4 +1,5 @@ #! /usr/bin/env bb +; -*- mode: clojure -*- (require '[cheshire.core :as json] '[org.httpkit.client :as http]