]> njoseph.me Git - babashka-scripts.git/blame_incremental - README.md
git: minor changes
[babashka-scripts.git] / README.md
... / ...
CommitLineData
1# Babashka Scripts
2
3Miscellaneous [babashka](https://babashka.org "babashka website") scripts written for my own personal use.
4
5## Requirements
6
7babashka (>= 0.4.0)
8
9## Usage
10
11Clone this repository.
12
13``` sh
14git clone https://njoseph.me/gitweb/babashka-scripts.git
15```
16
17The list of available commands can be found by running `bb tasks` in the directory where the file `bb.edn` is present.
18
19``` sh
20The following tasks are available:
21
22gup Do a git pull and rebase branch with master in a given directory.
23gpa Runs `git pull` on all the git repositories in a given directory.
24ebook-to-audiobook A utility to listen to your ebooks using TTS programs. Only tested on macOS with epub files.
25install-deb Install a Debian package given a direct URL to the .deb file.
26install-deb-gh Install a Debian package given a GitHub URL.
27```
28
29Some tasks can also take arguments.
30
31``` sh
32bb ebook-to-audiobook the-great-gatsby.epub
33```
34
35## Shell aliases
36
37``` sh
38# bash, zsh
39source /path/to/babashka-scripts/bb-aliases.sh
40alias task = bb --config ~/dev/babashka-scripts/bb.edn
41
42# nu
43source /path/to/babashka-scripts/bb-aliases.nu
44alias task = bb --config ~/dev/babashka-scripts/bb.edn
45```
46
47*Example:* To pull all the repositories in a directory, run
48
49``` sh
50task gpa .
51```
52
53There is a utility `bbe` to run tasks in the current working directory in `bb-aliases.sh`.
54
55
56*Example:* To pull all the repositories in a directory, run
57
58``` sh
59bbe gpa
60```