]> njoseph.me Git - babashka-scripts.git/blame - README.md
Use apt instead of gdebi to install local deb file
[babashka-scripts.git] / README.md
CommitLineData
f1d839f5
JN
1# Babashka Scripts
2
3Miscellaneous [babashka](https://babashka.org "babashka website") scripts I wrote for my own personal use.
4
5## Requirements
6
7babashka (>= 0.2.9)
8
9## Usage
10
11Clone this repository.
12
13``` sh
14cd ~/dev
15git clone https://njoseph.me/gitweb/babashka-scripts.git
16```
17
18Add the following lines to your shell configuration file.
19
20``` sh
00a96276
JN
21export BABASHKA_PRELOADS='(run! load-file (map #(str (System/getProperty "user.home") "/dev/babashka-scripts/" %) ["lib.clj" "utils.clj"]))'
22export BABASHKA_PRELOADS=$BABASHKA_PRELOADS" (require '[utils :refer :all])"
f1d839f5
JN
23export PATH=$PATH:$HOME/dev/babashka-scripts
24```
25
00a96276
JN
26Some useful aliases.
27
28``` sh
29alias gup="bb -e '(git-pull-rebase-branch)'"
30```
31
f1d839f5
JN
32## Organization
33
00a96276
JN
34`lib.clj` contains functions that the other scripts might use. It must be loaded
35first.
36
37`utils.clj` contains standalone utilities that can be executed directly. These are
38convenient to use through shell aliases.
39
40The remaining Clojure files are executable scripts.