From 57e618f2b43f69a280d1e73cb06cb470bec24e56 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalapati Date: Fri, 30 Apr 2021 14:16:12 +0530 Subject: [PATCH] Remove .clj suffix for scripts Signed-off-by: Joseph Nuthalapati --- README.md | 8 -------- ebook-to-audio-book.clj => ebook-to-audio-book | 1 + git-pull-all.clj => git-pull-all | 1 + install-deb | 8 ++++++++ install-deb-gh | 8 ++++++++ update-babashka.clj => update-babashka | 1 + 6 files changed, 19 insertions(+), 8 deletions(-) rename ebook-to-audio-book.clj => ebook-to-audio-book (97%) rename git-pull-all.clj => git-pull-all (97%) create mode 100755 install-deb create mode 100755 install-deb-gh rename update-babashka.clj => update-babashka (98%) 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] -- 2.43.0