X-Git-Url: https://njoseph.me/gitweb/babashka-scripts.git/blobdiff_plain/f1d839f5e616cf6f3b121c3b34a4fd16b2200a8c..cd6a808b48af61f35ea08b9a4a4f225a9b490cd9:/README.md diff --git a/README.md b/README.md index f02c678..7fa3294 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,23 @@ git clone https://njoseph.me/gitweb/babashka-scripts.git Add the following lines to your shell configuration file. ``` sh -export BABASHKA_PRELOADS='(load-file (str (System/getProperty "user.home") "/dev/babashka-scripts/lib.clj"))' +export BABASHKA_PRELOADS='(run! load-file (map #(str (System/getProperty "user.home") "/dev/babashka-scripts/" %) ["lib.clj" "utils.clj"]))' +export BABASHKA_PRELOADS=$BABASHKA_PRELOADS" (require '[utils :refer :all])" export PATH=$PATH:$HOME/dev/babashka-scripts ``` +Some useful aliases. + +``` sh +alias gup="bb -e '(git-pull-rebase-branch)'" +``` + ## Organization -`lib.clj` contains functions that the other scripts might use. It must be loaded first. +`lib.clj` contains functions that the other scripts might use. It must be loaded +first. + +`utils.clj` contains standalone utilities that can be executed directly. These are +convenient to use through shell aliases. + +The remaining Clojure files are executable scripts.