From da66854f71290e957412af99210421d3c1aacbe0 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Thu, 2 Jan 2020 14:31:13 +0100 Subject: [PATCH] Alias --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 0c8d5df5..db2e4d2f 100644 --- a/README.md +++ b/README.md @@ -407,6 +407,8 @@ $ bb "(my-gist-script/-main)" Hello from gist script! ``` +### Deps.clj + Using the [deps.clj](https://github.com/borkdude/deps.clj/) script, you can also pass the classpath and main opts to `bb`: @@ -415,6 +417,16 @@ $ deps.clj -A:my-script -Scommand "bb -cp {{classpath}} {{main-opts}}" Hello from gist script! ``` +#### Alias + +Create an alias when you need to this often: + +``` shell +$ alias babashka='deps.clj -Scommand "rlwrap bb -cp {{classpath}} {{main-opts}}"' +$ babashka -A:my-script +Hello from gist script! +``` + ## Uberscript The `--uberscript` option collects the expressions in